forked from cockroachdb/cockroach
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kv,grpcutil: Add an explicit preflight check for grpc connection state
This is similar to what grpc does internally for fail-fast rpcs, but lets us control the error returned to work around grpc/grpc-go#1443 Fixes cockroachdb#19708 Release note (performance improvement): Reduced the occurrence of ambiguous errors when a node is down.
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 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