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.
rpc: Check for decommissioning before dialback
Fixes: cockroachdb#101634 Previously the dialback check was done before the decommissioning check. Both checks fail with error when the node is decommissioned, however we want the decommissioned check to be done first since it returns an appropriate permission error rather than an obscure connection refused error. This change reverses the order the checks are done in. Epic: none Release note: None
- Loading branch information
1 parent
536c7f5
commit 7687257
Showing
1 changed file
with
13 additions
and
12 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