Skip to content

Adds wait for task registration to testCanFetchIndexStatus #16586

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

Merged
merged 1 commit into from
Feb 11, 2016

Conversation

imotov
Copy link
Contributor

@imotov imotov commented Feb 10, 2016

In the testCanFetchIndexStatus the task check can occur before the indexing process is started making the test to fail. This commit adds an additional lock to make sure we check tasks only after at least one of the tasks is registered.

@imotov imotov added >test Issues or PRs that are addressing/adding tests review :Distributed Coordination/Task Management Issues for anything around the Tasks API - both persistent and node level. labels Feb 10, 2016
@javanna
Copy link
Member

javanna commented Feb 10, 2016

thanks @imotov LGTM

In the testCanFetchIndexStatus the task check can occur before the indexing process is started making the test to fail. This commit adds an additional lock to make sure we check tasks only after at least one of the tasks is registered.
@imotov imotov force-pushed the fix-can-fetch-index-status-test branch from 6c5cce7 to a5406e1 Compare February 11, 2016 01:04
@imotov imotov merged commit a5406e1 into elastic:master Feb 11, 2016
@imotov imotov mentioned this pull request Feb 11, 2016
12 tasks
@imotov imotov deleted the fix-can-fetch-index-status-test branch May 1, 2020 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Task Management Issues for anything around the Tasks API - both persistent and node level. >test Issues or PRs that are addressing/adding tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants