File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
server/src/internalClusterTest/java/org/elasticsearch/repositories Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1010package org .elasticsearch .repositories ;
1111
1212import org .elasticsearch .action .ActionFuture ;
13+ import org .elasticsearch .action .ActionListener ;
1314import org .elasticsearch .action .admin .cluster .snapshots .create .CreateSnapshotResponse ;
1415import org .elasticsearch .action .admin .cluster .snapshots .restore .RestoreSnapshotResponse ;
1516import org .elasticsearch .cluster .SnapshotsInProgress ;
@@ -318,6 +319,9 @@ public void testByStateCounts_InitAndQueuedShards() throws Exception {
318319 .execute ();
319320
320321 waitForBlockOnAnyDataNode (repositoryName );
322+ safeAwait (
323+ (ActionListener <Void > l ) -> flushMasterQueue (internalCluster ().getCurrentMasterNodeInstance (ClusterService .class ), l )
324+ );
321325
322326 // Should be {numShards} in INIT state, and 1 STARTED snapshot
323327 Map <SnapshotsInProgress .ShardState , Long > shardStates = getShardStates ();
You can’t perform that action at this time.
0 commit comments