Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.8.1
-
None
-
None
-
SQL persistence store
Description
In org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit, if it discovers that the index is empty, it creates an initial index and then calls checkPendingJournalChanges(). That method reads all the new journal records (all at once, which is separate bug JCR-2483) and applies them. Since it is now caught up, it should save the revision number that it is up to, but it appears not to. As far as I can tell, this means that when the next journal sync occurs, it will re-fetch and re-process all the records it just processed.
Also, it's not clear why it bothers to process the journal at this stage anyway, instead of letting it happen at the next journal sync.