Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaner error handling around store copy
* Fatal and unknown exceptions lead to a panic. Typically these are life-cycle exceptions, I/O exceptions, etc. * StoreCopyFailedException is now a proper wrapper for benign issues. The unnecessary StreamingTransactionsFailed exception was thus removed, since it could be subsumed by this in all places. Ideally we would get rid of this exception completely. * The CoreStateDownloader now avoids exceptions for regular control flow, and exceptions are just used for exceptional circumstances. Specifically, the StoreCopyFailedException is not a valid outcome. Either an exception with known failure handling semantics is thrown, or a boolean is returned indicating if the operation succeeded or needs to be retried.
- Loading branch information
1 parent
5c2ed79
commit f213392
Showing
17 changed files
with
259 additions
and
220 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
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.