-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserverbase: remove NonDeterministicError
Reflecting on a recent change[^1] I realized we didn't need `NonDeterministicError` any more since we have since fully embraced `cockroachdb/errors` which provides redactable errors, so the "safe explanation" functionality of this error implementation is unnecessary. Furthermore, unexpected errors during raft application errors are by default considered nondeterministic - it would be an invitation for problems if this were otherwise. So contrary to what the name suggests, using a `NonDeterministicError` never meant that we were doing anything special to treat it as nondeterministic; there is really just one error that gets special treatment, and it's in the other direction: `apply.ErrRemoved` indicates that the replica got destroyed as a result of command application, and is part of the regular Replica lifecycle. Long story short, there wasn't a reason to keep `NonDeterministicError` around, and this commit removes it. [^1]: a1d7605 Epic: CRDB-220 Release note: None
- Loading branch information
Showing
8 changed files
with
52 additions
and
140 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 was deleted.
Oops, something went wrong.
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.