-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent cache file synchronization to add evicted cache files back in…
… the persistent cache (#68042) This commit changes how cache files synchronization interacts with the persistent cache in searchable snapshots. Before this change it was possible that synchronization reintroduces information about an evicted cache file in the persistent cache Lucene index. This commit introduces an queue of cache file events that are periodically processed by the cache synchronization method. The events refer to a specific cache file and a type of event (deletion or fsync needed) that must be processed by the cache synchronization method, which in turn applies the appropriate logic to the persistent cache Lucene. This commit changes how the event are inserted into the events queue by guaranteeing that no need fsync/update event come after a delete event. index. Backport of #67694
- Loading branch information
Showing
6 changed files
with
569 additions
and
142 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
Oops, something went wrong.