This issue has been created
There are 7 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-d3be8e83-c53f-4716-a8fc-597a0689cf80 XWIKI-23920 In Progress

Significantly slower times on SOLR sync on XWiki 17.10.2 compared to XWiki 16.10.16

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-c9689564-a424-40fc-b70d-54164f20c7ea Ilie Andriuta created this issue on 20/Jan/26 13:42
 
Summary: Significantly slower times on SOLR sync on XWiki 17.10.2 compared to XWiki 16.10.16
Issue Type: cid:jira-generated-image-avatar-d3be8e83-c53f-4716-a8fc-597a0689cf80 Bug
Affects Versions: 17.10.2
Assignee: Unassigned
Components: Search - Solr
Created: 20/Jan/26 13:42
Environment: Windows 11 Pro, Firefox 147, using an instance of XWiki 17.10.2 on Jetty/ HSQL, Java 21
Priority: cid:jira-generated-image-static-blocker-1210cd7c-23bd-438d-a646-fcb7dae799c9 Blocker
Reporter: Ilie Andriuta
Description:

Steps to reproduce

  1. Start XWiki first, wait for the server to initialize, then stop the instance
  2. Delete the <permdir>\data\cache\solr\search_9 from the instance's folder
  3. Start XWiki again and access the instance on the browser
  4. Right after the log:
    2026-01-20 13:13:33,658 [solr/indexer job group daemon thread - org.xwiki.search.solr.internal.job.IndexerJob@5846f54a([solr, indexer])] INFO  o.x.s.s.i.j.IndexerJob         - Finished job of type [solr.indexer] with identifier [[solr, indexer]]

    open <permdir>\data\jobs\solr\indexer\status.xml

  1. Read the last “elapsedTime” value from </progress> section
  2. Start XWiki again, this time without deleting anything from the data\cache\solr folder
  3. After the same log from Step 4, read the last “elapsedTime” value from </progress> section as well

Expected results

The elapsed time for SOLR sync is short, e.g. on XWiki 16.10.16:

  • SOLR sync when index is empty - on XWiki 16.10.16: 1.51 sec
  • SOLR sync when there is nothing to do - on XWiki 16.10.16: 502 ms

Actual results

On XWiki 17.10.2, the times are significantly higher:

  • SOLR sync when index is empty: 30.96 sec
  • SOLR sync when there is nothing to do: 860 ms
 
 

7 updates

 
cid:jira-generated-image-avatar-c9689564-a424-40fc-b70d-54164f20c7ea Changes by Ilie Andriuta on 20/Jan/26 13:42
 
Labels: regression
 
cid:jira-generated-image-avatar-18e94d66-e94b-4839-8d31-3ebbc99f4e8c Changes by Thomas Mortagne on 20/Jan/26 13:42
 
Fix Version: 18.0.0
Fix Version: 17.10.3
Assignee: Thomas Mortagne
Labels: performance regression
Status: Open In Progress
 
cid:jira-generated-image-avatar-c9689564-a424-40fc-b70d-54164f20c7ea Changes by Ilie Andriuta on 20/Jan/26 13:43
 
Description: *Steps to reproduce*
# Start XWiki first, wait for the server to initialize, then stop the instance
# Delete the {{<permdir>\data\cache\solr\search_9}} from the instance's folder
# Start XWiki again and access the instance on the browser
# Right after the log:
{code:java}
2026-01-20 13:13:33,658 [solr/indexer job group daemon thread - org.xwiki.search.solr.internal.job.IndexerJob@5846f54a([solr, indexer])] INFO  o.x.s.s.i.j.IndexerJob         - Finished job of type [solr.indexer] with identifier [[solr, indexer]]{code}
open {{<permdir>\data\jobs\solr\indexer\status.xml}}

# Read the last “elapsedTime” value from {{</progress>}} section
# Start XWiki again, this time without deleting anything from the {{data\cache\solr}} folder
# After the same log from Step 4, read the last “elapsedTime” value from {{</progress>}} section as well

*Expected results*

The elapsed time for SOLR sync is short, e.g. on XWiki 16.10.16:
* SOLR sync when index is empty - on XWiki 16.10.16: *1.51 sec*
* SOLR sync when there is nothing to do - on XWiki 16.10.16: *502 ms*

*Actual results*

On XWiki 17.10.2, the times are significantly higher:
* SOLR sync when index is empty: *30.96 sec*
* SOLR sync when there is nothing to do: *860 ms*


Please see more details in the Performance tests report here: [https://test.xwiki.org/xwiki/bin/view/Performances/Jetty%20HSQLDB%20single%20wiki%20161016%20to%2017102]]