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

Improve reliability of gossip convergence test. #383

Merged
merged 1 commit into from
Mar 6, 2015

Conversation

bdarnell
Copy link
Contributor

@bdarnell bdarnell commented Mar 6, 2015

Instead of increasing the cycle count to accommodate race-enabled
tests on slow hardware, increase the gossip interval so that
the test is no longer cpu-limited.

Instead of increasing the cycle count to accommodate race-enabled
tests on slow hardware, increase the gossip interval so that
the test is no longer cpu-limited.
@spencerkimball
Copy link
Member

LGTM

@bdarnell
Copy link
Contributor Author

bdarnell commented Mar 6, 2015

I tried to convert gossip to a manual clock but couldn't make it work (there's no good way to define a "cycle" with all the goroutines involved). Increasing the gossip interval is better than the cycle count because when the interval is too low, some goroutines just fall further and further behind. With this change it converges in 2-3 cycles pretty consistently on my laptop, race or non-race.

@spencerkimball
Copy link
Member

Sounds good.

On Fri, Mar 6, 2015 at 11:21 AM, Ben Darnell [email protected]
wrote:

I tried to convert gossip to a manual clock but couldn't make it work
(there's no good way to define a "cycle" with all the goroutines involved).
Increasing the gossip interval is better than the cycle count because when
the interval is too low, some goroutines just fall further and further
behind. With this change it converges in 2-3 cycles pretty consistently on
my laptop, race or non-race.


Reply to this email directly or view it on GitHub
#383 (comment).

bdarnell added a commit that referenced this pull request Mar 6, 2015
Improve reliability of gossip convergence test.
@bdarnell bdarnell merged commit 96b0162 into cockroachdb:master Mar 6, 2015
@bdarnell bdarnell deleted the gossip-test branch March 6, 2015 16:25
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.

2 participants