kvserver: remove TestReplicaRemovalClosesProposalQuota #98685
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.
As this test explained in its comment, the circumstances it was
seeking to test were very rarely met and even if the behavior
were missing, this wouldn't cause any problems.
The test has been skipped (accidentally) for a long time, was flaky even
then (leaking trace spans, see below), and it's not easy to
enact the situation the test wishes to construct in an idiomatic way.
It's pretty clear that the lines the test wants are present:
cockroach/pkg/kv/kvserver/replica_destroy.go
Lines 174 to 176 in 736a67e
It's better to remove the test at this point.
Closes #96932.
Also, fix a buglet that the test "accidentally" uncovered:
Previously, if
evalAndPropose
returned with an error while trying topropose a pipelined write, it would leak the trace span.
Make sure this doesn't happen. The test that exercised this got deleted
in the previous commit, but this is still a bug that could cause a
larger leak if a condition were ever added to
evalAndPropose
whichcould cause a large amount of errors (perhaps spread out over a longer
time period) in production clusters.
Unfortunately, writing a test for this is likely to be a net negative;
if the reviewer feels strongly I can add a testing knob to inject an
error in the right place in this method and exercise it that way.
Touches #96932.
Epic: none
Release note: None