-
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.
closedts: fix bug ignoring zero MLIAs to stabilize roachtest cdc/rang…
…efeed Before this PR, ranges which emitted min lease applied indices of zero were ignored. This happened because the logic to track and store MLAIs takes care to not allow storing indices less than the currently stored value. Go's maps return zero values when queried for non-existing keys and because it is not the case that 0 < 0, we never added zero entries to the map. This PR was motivated by the formerly unstable cdc/rangefeed roachtest. The author has verified that the formerly flakey cdc rangefeed roachtest now reliably passes after making minor changes to the test. The change updates the target steady latency from 1m to 2m to adjust for the increasing of kv.closedts.target_duration from 5s to 30s (see #31837). It also adds a short sleep between installing and running the TPCC workload which seems to deflake some errors which @Danhz had observed. Lastly, it increase the replica_rangefeed channel buffer size from 512 to 4096 to mitigate errors obserted related to "buffer capacity exceeded due to slow consumer". Release note: None
- Loading branch information
Showing
6 changed files
with
66 additions
and
18 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
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