release-21.1: kv: deflake multi-node kvnemesis #63403
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport 3/3 commits from #62580.
/cc @cockroachdb/release
Fixes #61322.
Prep to address #59062.
kv: don't consider Subsume error as assertion failures
These were added in b15e3dd, but that was incorrect. It is valid for a merge that races with another merge or split to hit these case, as the Subsume request is non-transactional.
Also, allow
RHS range bounds do not match
errors in kvnemesis. This is a valid error for the reasons mentioned above.kv: mark error from Replica.GetSnapshot with errMarkSnapshotError
Without it, we see the following errors in kvnemesis:
kv: allow two more errors with TransferLeaseOperation
This deflakes TestKVNemesisMultiNode. The test had recently gotten flakier, which I bisected back to 3fe1992. It appears that the changes in that commit made it more likely to hit this
replica not found in RangeDescriptor
, which is returned after a TransferLease request has acquired latches, in addition to the existingunable to find store \d+ in range
error, which is returned before a TransferLease request has acquired latches.