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.
tabledesc_test: deflake TestIndexDoesNotStorePrimaryKeyColumnMixedVer…
…sion Previously, this test would flake under `--stress` and the root cause is because the upgrade precondition check that it relies on actually checks for corrupt descriptor at AOST '-10s', and it's possible that the corrupt descriptor was injected within the last 10s to the system, and thus the check produced a "false negative" (meaning it saw there isn't no corruption at AOST '-10s' and mistakenly assumed there isn't corruption now) and thus mistakenly allowed the cluster upgrade to proceed. The AOST '-10s' trick in the upgrade was implemented to help with performance, and, for now, I think that outweighs the possibility of producing such false-negatives, so this fix instead modified the test such that it waits 10s after injecting the corrupt descriptor to ensure it will be seen by the time the upgrade logic runs. The downside that comes with this decision is this test will now take ~10-11s to run and we need to skip it under `--stress` (bc 1000 iterations / # of parallelism * 10s can still be larger than 1h, the default timeout for nightly stresses). Release note: None
- Loading branch information
Showing
3 changed files
with
15 additions
and
4 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