Commit 1fb0eac
committed
catalog/lease: fix flake for TestTableCreationPushesTxnsInRecentPast
Previously, TestTableCreationPushesTxnsInRecentPast could flake because
we attempted to increase the uncertainty interval error by adding a
delay on KV RPC calls to make the uncertainty interval larger. This
would work based on the observed timestamp having a variance between
nodes. This wasn't effective, and we could still have intermittent
failures, because the variance was not large enough. To address this,
this patch will increase the maximum offset on the HLC clock itself,
which is used as the base value for computing the uncertainty interval
(see computeIntervalForTxn). With this change, we expect a more
deterministic reproduction of the txn getting pushed because of the
uncertainty interval.
Fixes: #114366
Release note: None1 parent f71ed12 commit 1fb0eac
2 files changed
+2
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
2028 | 2027 | | |
2029 | 2028 | | |
2030 | 2029 | | |
2031 | | - | |
2032 | | - | |
2033 | | - | |
2034 | | - | |
2035 | | - | |
2036 | | - | |
| 2030 | + | |
| 2031 | + | |
2037 | 2032 | | |
2038 | 2033 | | |
2039 | 2034 | | |
| |||
0 commit comments