This issue has been created
There are 3 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-aec0aa09-ef27-4b3a-9f9e-a09c21249d10 XWIKI-23188 Open

Race condition in Solr index synchronization can delete existing documents from the index

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-2f7eed24-a52d-411c-a768-3ae3701b231f Michael Hamann created this issue on 07/May/25 14:58
 
Summary: Race condition in Solr index synchronization can delete existing documents from the index
Issue Type: cid:jira-generated-image-avatar-aec0aa09-ef27-4b3a-9f9e-a09c21249d10 Bug
Affects Versions: 15.10
Assignee: Unassigned
Components: Search - Solr
Created: 07/May/25 14:58
Priority: cid:jira-generated-image-static-major-02e1c55b-cfe9-469c-93cb-c8d60776c521 Major
Reporter: Michael Hamann
Description:

Steps to reproduce:

Delete and create pages while the solr.indexer job runs (at startup). This is reproduced in SolrIndexerIT in which it seems this index synchronization job runs in parallel to the creation of mandatory documents.

Expected result:

Documents that have just been created aren't deleted again from the index.

Actual result:

Some documents are deleted from the index even though they still exist in the database. This is difficult to reproduce.

I suspect that this reproduces very rarely in actual XWiki installations but it could lead to missing documents in the index in particular on the first run. As we rely more and more on a complete and up-to-date Solr index this could be an issue as important refactoring operations might not work as expected.

 
 

3 updates

 
cid:jira-generated-image-avatar-2f7eed24-a52d-411c-a768-3ae3701b231f Changes by Michael Hamann on 07/May/25 14:58
 
Fix Version: 16.10.7
Fix Version: 17.4.0-rc-1
Assignee: Michael Hamann