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.
TestFollowerReadsWithStaleDescriptor was fragile: it wants to control precisely which follower a particular query will be routed to and it went through some knobs to do so, but one more knob is needed. This patch introduces the knob for inhibiting the GRPCTransport's check of connection health when deciding the replica ordering - it normally tries to deprioritize nodes to which there isn't a healthy conn. A connection starts off as unhealthy until it's heartbeated for the first time so, depending on whether a connection was established or not to the desired node sufficiently before the query of interest, that check is a problem. In particular, the transport's default behavior becomes a problem with the following commits which remove the old closed timestamp mechanism that came with early establishment of some network connections. Without it, this test becomes unhappy. Release note: None
- Loading branch information
1 parent
65457f9
commit f092ad9
Showing
4 changed files
with
33 additions
and
5 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
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