-
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.
[ENGINE] Prevent NPE if engine is closed while version map is checked
We check if the version map needs to be refreshed after we released the readlock which can cause the the engine being closed before we read the value from the volatile `indexWriter` field which can cause an NPE on the indexing thread. This commit also fixes a potential uncaught exception if the refresh failed due to the engine being already closed. Relates to #6443 Closes #6786
- Loading branch information
Showing
1 changed file
with
28 additions
and
13 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