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.
regionliveness: fix flakes inside TestRegionLivenessProber
Previously, the cancellation generated by timeouts set by region liveness probing could potentially fail with "context deadline exceeded". This could happen in code paths where the cancellation checker isn't used for example within the region liveness code when pure KV calls are used. To address this, this patch allow context cancelled errors to be treated as timeouts. Additionally, the region liveness tests are cleaned up and have the sqlliveness TTL increased to reduce the risk of flakes. Also the reduced probing timeouts are only setup for short periods of time when failures are expected to reduce risk of intermittent failures. Fixes: cockroachdb#118465, cockroachdb#118464 Release note: None
- Loading branch information
Showing
2 changed files
with
32 additions
and
19 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