Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kvnemesis: fix and unskip TestKVNemesisMultiNode #58919

Merged

Conversation

aayushshah15
Copy link
Contributor

Before this patch, #56197 broke this test because it changed a range
merge error string that let the KV nemesis validator ignore the error.
This patch updates the regexp the validator uses to match the error and
unskips the test.

Fixes #58624.

Release note: None

Before this patch, cockroachdb#56197 broke this test because it changed a range
merge error string that let the KV nemesis validator ignore the error.
This patch updates the regexp the validator uses to match the error and
unskips the test.

Fixes cockroachdb#58624.

Release note: None
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@@ -310,7 +310,8 @@ func (v *validator) processOp(txnID *string, op Operation) {
// However, I think the right thing to do is sniff this inside the
// AdminMerge code and retry so the client never sees it. In the meantime,
// no-op. #44377
} else if resultIsError(t.Result, `merge failed: cannot merge range with non-voter replicas`) {
} else if resultIsError(t.Result,
`merge failed: cannot merge ranges when (rhs)|(lhs) is in a joint state or has learners`) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the way, you can address the above TODO now. See *ChangeReplicasOperation below. This error could be marked for IsIllegalReplicationChangeError.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted, I'll make a patch for it.

@aayushshah15
Copy link
Contributor Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Jan 14, 2021

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jan 14, 2021

Build succeeded:

@craig craig bot merged commit 481cb43 into cockroachdb:master Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kv/kvnemesis: TestKVNemesisMultiNode failed
3 participants