-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpc: Perform initial-heartbeat validation on GRPC reconnections
GRPC will transparently reconnect when a connection fails, but if the next process to use that port is not a part of the same cluster, this leads to confusing errors and potential data corruption. (this is most common in tests, but it can also occur in other situations). This change disables grpc's automatic reconnections so that in the event of a failed connection, we go through our full dialing process including an initial heartbeat that validates certain parameters. Fixes #20537 Release note (bug fix): Implement additional safeguards against RPC connections between nodes that belong to different clusters.
- Loading branch information
Showing
3 changed files
with
70 additions
and
21 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
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