Skip to content

roachtest: fix copy/bank roachtest to deal with smaller ranges#45585

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
ajwerner:ajwerner/fix-copy-bank-roachtest-take-2
Mar 2, 2020
Merged

roachtest: fix copy/bank roachtest to deal with smaller ranges#45585
craig[bot] merged 1 commit intocockroachdb:masterfrom
ajwerner:ajwerner/fix-copy-bank-roachtest-take-2

Conversation

@ajwerner
Copy link
Copy Markdown
Contributor

@ajwerner ajwerner commented Mar 2, 2020

In #45451 we made the expected number of ranges reflect the current
zone config. The problem with this change is that it used a factor of
2x the minimum range size to estimate the upper bound on number of ranges.

There was no principled reason to make this assumption. We should instead
just assert that the ranges are larger than the minimum range size on average.

Release note: None

@ajwerner ajwerner requested a review from nvb March 2, 2020 15:57
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Collaborator

@petermattis petermattis left a comment

Choose a reason for hiding this comment

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

LGTM

I'm taking this for a spin. I'll let you know the results in about 30 min.

@petermattis
Copy link
Copy Markdown
Collaborator

I'm taking this for a spin. I'll let you know the results in about 30 min.

10+10 passes (I ran each copy/bank/* test 10 times).

:shipit:

@ajwerner
Copy link
Copy Markdown
Contributor Author

ajwerner commented Mar 2, 2020

TFTR!

bors r=petermattis

In cockroachdb#45451 we made the expected number of ranges reflect the current
zone config. The problem with this change is that it used a factor of
2x the minimum range size to estimate the upper bound on number of ranges.

There was no principled reason to make this assumption. We should instead
just assert that the ranges are larger than the minimum range size on average.

Release note: None
@ajwerner ajwerner force-pushed the ajwerner/fix-copy-bank-roachtest-take-2 branch from f5c3c96 to 7b0aa18 Compare March 2, 2020 17:12
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 2, 2020

Canceled

@ajwerner
Copy link
Copy Markdown
Contributor Author

ajwerner commented Mar 2, 2020

license bot

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 2, 2020

Build succeeded

@craig craig bot merged commit 003fa43 into cockroachdb:master Mar 2, 2020
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.

3 participants