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

compactor: wait for After() in TestPeriodic #6168

Merged
merged 1 commit into from
Aug 12, 2016

Conversation

heyitsanthony
Copy link
Contributor

If the test calls clock.Advance() after the compactor checks clock.Now()
but before the compactor calls clock.After(), the compactor will wait
forever on clock.After() expecting the lost clock.Advance().

Reproduced failure by putting a Sleep() in the clock.Now() continue path.

Fixes #6060 (again)

If the test calls clock.Advance() after the compactor checks clock.Now()
but before the compactor calls clock.After(), the compactor will wait
forever on clock.After() expecting the lost clock.Advance().

Reproduced failure by putting a Sleep() in the clock.Now() continue path.

Fixes etcd-io#6060 (again)
@xiang90
Copy link
Contributor

xiang90 commented Aug 12, 2016

lgtm

@heyitsanthony heyitsanthony merged commit 817de6d into etcd-io:master Aug 12, 2016
@heyitsanthony heyitsanthony deleted the fix-periodic-test-block branch September 6, 2016 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants