Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes issue with lonely check point in log file during recovery
LatestCheckPointFinderTest didn't test what it claimed to test and so this issue slipped through the cracks. This whole test class have been simplified and its use of mocking heavily reduced. Issue was this: Given an older log file with some transaction in and a newer log file with only a check point in, targeting an entry in the older log file -> LatestCheckPointFinder would report that there were no transactions after the last check point, while in fact there were. This would result in all those transactions to not be recovered on that startup. This commit also adds more detailed logging on finding last checkpoint at startup, this to better be able to reason about recovery issues by reading debug.log.
- Loading branch information
Showing
11 changed files
with
442 additions
and
194 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
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
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
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
Oops, something went wrong.