forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doctor: add validation runtime error recovery
Previously, doctor could crash when validating corrupted descriptors. The validation code is usually cautious enough to not dereference nils or the like but this isn't enforced in any way. This commit protects the validation calls in doctor with panic recovery, allowing doctor to continue and validate the remaining descriptors. Release justification: non-production code change. Release note: None
- Loading branch information
Marius Posta
committed
Mar 1, 2021
1 parent
67099fa
commit 4d9034c
Showing
2 changed files
with
58 additions
and
1 deletion.
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