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: mark heartbeat RPCs as fail-fast
We want heartbeat RPCs to be fail-fast so that we get notified of transport failures and close the connection. Failure to do this left the gRPC client connections permanently open and trying to reconnect to down nodes, fouling up the circuit breaker expectations in Raft transport. Changed client.NewSender to create a separate gRPC connection which will not be heartbeat by the rpc.Context. We don't want the heartbeat service and we don't want these connections closed. Fixes cockroachdb#8130
- Loading branch information
1 parent
5c39e1a
commit a79b1b9
Showing
2 changed files
with
33 additions
and
11 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