Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bugs related to the journal recovering from a UFS failure
Fixes #9722 Fixes several edge cases in journal recovery. 1. If we fail to flush to the journal, do not try to recover, instead flag the stream as needsRecovery and handle the recovery on next operation 2. When recovering, make sure there is a previous journal entry 3. When recovering, create a new log file starting with the latest committed journal entry (instead of our current one) 4. When recovering, fail if the latest journal entry recovered from our buffer is not equal to our expected next sequence number - 1 5. When recovering, do not consider incomplete logs when inferring the last persisted sequence number from the file name (it will be INTEGER_MIN) pr-link: #9723 change-id: cid-63623a4e96d91f9619605dd9cad1b7da7679ac9c
- Loading branch information
1 parent
38cc5b5
commit be4e9cb
Showing
2 changed files
with
72 additions
and
49 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