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

storage: un-starve TestReplicateQueueDownReplicate #33013

Merged
merged 1 commit into from
Dec 11, 2018

Conversation

tbg
Copy link
Member

@tbg tbg commented Dec 11, 2018

Before this change,

make test PKG=./pkg/storage/ TESTS=TestReplicateQueueDownReplicate
TESTFLAGS='-count 10'

takes ~109s on my laptop. After this change, it takes ~18s.

This is in line with a test failure on CI which looked like the test
had just never managed to schedule the goroutines that matter in time
for things to wrap up.

Fixes #32256.

Release note: None

Before this change,

> make test PKG=./pkg/storage/ TESTS=TestReplicateQueueDownReplicate
> TESTFLAGS='-count 10'

takes ~109s on my laptop. After this change, it takes ~18s.

This is in line with a test failure on CI which looked like the test
had just never managed to schedule the goroutines that matter in time
for things to wrap up.

Fixes cockroachdb#32256.

Release note: None
@tbg tbg requested a review from a team December 11, 2018 12:49
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
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:

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


pkg/storage/replicate_queue_test.go, line 198 at r1 (raw file):

			ServerArgs: base.TestServerArgs{
				ScanMinIdleTime: 10 * time.Millisecond,
				ScanMaxIdleTime: 10 * time.Millisecond,

Note that you set these to 1ms back in mid July. Did you experiment with larger values (e.g. 100ms)? I'm wondering how 10ms was arrived at.

Copy link
Member Author

@tbg tbg left a comment

Choose a reason for hiding this comment

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

bors r=petermattis

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


pkg/storage/replicate_queue_test.go, line 198 at r1 (raw file):

Previously, petermattis (Peter Mattis) wrote…

Note that you set these to 1ms back in mid July. Did you experiment with larger values (e.g. 100ms)? I'm wondering how 10ms was arrived at.

When I set these to 1ms, it was because they had implicitly been bumped to 1s. With 100ms, I get ~64s for 10 runs. Based on that, 10ms is reasonable enough.

craig bot pushed a commit that referenced this pull request Dec 11, 2018
33013: storage: un-starve TestReplicateQueueDownReplicate r=petermattis a=tbg

Before this change,

> make test PKG=./pkg/storage/ TESTS=TestReplicateQueueDownReplicate
> TESTFLAGS='-count 10'

takes ~109s on my laptop. After this change, it takes ~18s.

This is in line with a test failure on CI which looked like the test
had just never managed to schedule the goroutines that matter in time
for things to wrap up.

Fixes #32256.

Release note: None

Co-authored-by: Tobias Schottdorf <tobias.schottdorf@gmail.com>
@craig
Copy link
Contributor

craig bot commented Dec 11, 2018

Build succeeded

@craig craig bot merged commit 62ab2cb into cockroachdb:master Dec 11, 2018
@tbg tbg deleted the fix/TestReplicateQueueDownReplicate branch March 13, 2019 11:51
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