Wait for metadata to stabilize before checking for it after opening indices in testMetaWrittenWhenIndexIsClosedAndMetaUpdated
This commit is contained in:
parent
33521fc27c
commit
b07a8185a7
|
@ -142,6 +142,8 @@ public class MetaDataWriteDataNodesIT extends ESIntegTestCase {
|
|||
|
||||
// finally check that meta data is also written of index opened again
|
||||
assertAcked(client().admin().indices().prepareOpen(index).get());
|
||||
// make sure index is fully initialized and nothing is changed anymore
|
||||
ensureGreen();
|
||||
indicesMetaData = getIndicesMetaDataOnNode(dataNode);
|
||||
assertThat(indicesMetaData.get(index).getState(), equalTo(IndexMetaData.State.OPEN));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue