-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure LuceneChangesSnapshot reads in leaf order (#31246)
Today we re-initialize DV instances while we read docs for the snapshot. This is caused by the fact that we sort the docs by seqID which causes then to be our of order. This change sorts documents temporarily by docID, fetches the metadata (not source) into a in-memory datastructure and sorts it back. This allows efficient reuse of DV instances.
- Loading branch information
Showing
1 changed file
with
88 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters