-
Notifications
You must be signed in to change notification settings - Fork 24.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Write next cluster state fully on all failures (#73631)
Today we do not set the `LucenePersistedState#writeNextStateFully` flag on all failures, notably on an `OutOfMemoryError`. Since we don't exit immediately on an OOME we may have failed part-way through writing a full state but still proceed with another apparently-incremental write. With this commit we ensure `LucenePersistedState#writeNextStateFully` is only set if the previous write was successful.
- Loading branch information
1 parent
51f6e7d
commit b532f13
Showing
2 changed files
with
94 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
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