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

kvserver: fix TestBadRequest #60964

Merged
merged 1 commit into from
Feb 23, 2021

Conversation

lunevalex
Copy link
Collaborator

Fixes #51795

This test was originally written when the test infra started up with a
single range. This commit updates the logic to work with any config.
To make the last error fire, we need to contain the delete span to
a single range that starts at KeyMin.

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@andreimatei andreimatei left a comment

Choose a reason for hiding this comment

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

:LGTM: thanks

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @lunevalex and @nvanbenschoten)


pkg/kv/kvclient/kvcoord/dist_sender_server_test.go, line 1521 at r1 (raw file):

	// To make the last check fail we need to search the replica that starts at
	// KeyMin i.e. typically its Range(1).

it's

Fixes cockroachdb#51795

This test was originally written when the test infra started up with a
single range. This commit updates the logic to work with any config.
To make the last error fire, we need to contain the delete span to
a single range that starts at KeyMin.

Release note: None
@lunevalex
Copy link
Collaborator Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 23, 2021

Build failed:

@lunevalex
Copy link
Collaborator Author

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 23, 2021

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Feb 23, 2021

Build succeeded:

@craig craig bot merged commit 2572200 into cockroachdb:master Feb 23, 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.

kvcoord: TestBadRequest is skipped
3 participants