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

roachtest: Stop rebalance test as soon as it succeeds #31289

Merged
merged 1 commit into from Oct 12, 2018

Conversation

Projects
None yet
3 participants
@a-robinson
Member

a-robinson commented Oct 11, 2018

Previously it would always run for the entire test duration even after
it achieved success, which was pretty annoying when stressing it.

There may be a more idiomatic way to do this. If so, I'd love to know.

Release note: None

@a-robinson a-robinson requested a review from nvanbenschoten Oct 11, 2018

@cockroach-teamcity

This comment has been minimized.

Show comment
Hide comment
@cockroach-teamcity

cockroach-teamcity Oct 11, 2018

Member

This change is Reviewable

Member

cockroach-teamcity commented Oct 11, 2018

This change is Reviewable

@nvanbenschoten

:lgtm:

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale)


pkg/cmd/roachtest/rebalance_load.go, line 47 at r1 (raw file):

	// usually (but not always fail) with it set to false.
	rebalanceLoadRun := func(
		ctx context.Context, t *test, c *cluster, rebalanceMode string, duration time.Duration, concurrency int,

consider changing duration to maxDuration now that this test should finish must faster if everything is good.


pkg/cmd/roachtest/rebalance_load.go, line 81 at r1 (raw file):

duration.String()

nit while you're here: drop the .String()

roachtest: Stop rebalance test as soon as it succeeds
Previously it would always run for the entire test duration even after
it achieved success, which was pretty annoying when stressing it.

There may be a more idiomatic way to do this. If so, I'd love to know.

Release note: None
@a-robinson

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained


pkg/cmd/roachtest/rebalance_load.go, line 47 at r1 (raw file):

Previously, nvanbenschoten (Nathan VanBenschoten) wrote…

consider changing duration to maxDuration now that this test should finish must faster if everything is good.

Done.


pkg/cmd/roachtest/rebalance_load.go, line 81 at r1 (raw file):

Previously, nvanbenschoten (Nathan VanBenschoten) wrote…
duration.String()

nit while you're here: drop the .String()

Done.

@a-robinson

This comment has been minimized.

Show comment
Hide comment
@a-robinson

a-robinson Oct 12, 2018

Member

bors r+

Member

a-robinson commented Oct 12, 2018

bors r+

craig bot pushed a commit that referenced this pull request Oct 12, 2018

Merge #31289
31289: roachtest: Stop rebalance test as soon as it succeeds r=a-robinson a=a-robinson

Previously it would always run for the entire test duration even after
it achieved success, which was pretty annoying when stressing it.

There may be a more idiomatic way to do this. If so, I'd love to know.

Release note: None

Co-authored-by: Alex Robinson <alexdwanerobinson@gmail.com>
@craig

This comment has been minimized.

Show comment
Hide comment
@craig

craig bot commented Oct 12, 2018

Build succeeded

@craig craig bot merged commit 4e0d44d into cockroachdb:master Oct 12, 2018

3 checks passed

GitHub CI (Cockroach) TeamCity build finished
Details
bors Build succeeded
Details
license/cla Contributor License Agreement is signed.
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment