Skip to content

kvnemesis: fix and unskip TestKVNemesisMultiNode#58919

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
aayushshah15:fix-kvnemesis-merge-err-string
Jan 14, 2021
Merged

kvnemesis: fix and unskip TestKVNemesisMultiNode#58919
craig[bot] merged 1 commit intocockroachdb:masterfrom
aayushshah15:fix-kvnemesis-merge-err-string

Conversation

@aayushshah15
Copy link
Copy Markdown
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
Copy Markdown
Member

This change is Reviewable

// 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jan 14, 2021

Build failed (retrying...):

@craig
Copy link
Copy Markdown
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