Skip to content

[ML] Wait for shards to initialize after creating ML internal indices#59087

Merged
droberts195 merged 1 commit intoelastic:7.xfrom
droberts195:wait_for_shards_on_index_create_7x
Jul 7, 2020
Merged

[ML] Wait for shards to initialize after creating ML internal indices#59087
droberts195 merged 1 commit intoelastic:7.xfrom
droberts195:wait_for_shards_on_index_create_7x

Conversation

@droberts195
Copy link
Copy Markdown

There have been a few test failures that are likely caused by tests
performing actions that use ML indices immediately after the actions
that create those ML indices. Currently this can result in attempts
to search the newly created index before its shards have initialized.

This change makes the method that creates the internal ML indices
that have been affected by this problem (state and stats) wait for
the shards to be initialized before returning.

Backport of #59027

There have been a few test failures that are likely caused by tests
performing actions that use ML indices immediately after the actions
that create those ML indices.  Currently this can result in attempts
to search the newly created index before its shards have initialized.

This change makes the method that creates the internal ML indices
that have been affected by this problem (state and stats) wait for
the shards to be initialized before returning.

Backport of elastic#59027
@droberts195
Copy link
Copy Markdown
Author

Jenkins run elasticsearch-ci/2

@droberts195 droberts195 merged commit e217f9a into elastic:7.x Jul 7, 2020
@droberts195 droberts195 deleted the wait_for_shards_on_index_create_7x branch July 7, 2020 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant