File tree 1 file changed +2
-1
lines changed
server/src/test/java/org/elasticsearch/indices/state
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 33
33
import org .elasticsearch .cluster .routing .allocation .decider .ThrottlingAllocationDecider ;
34
34
import org .elasticsearch .cluster .service .ClusterService ;
35
35
import org .elasticsearch .common .settings .Settings ;
36
+ import org .elasticsearch .common .unit .TimeValue ;
36
37
import org .elasticsearch .common .util .concurrent .ConcurrentCollections ;
37
38
import org .elasticsearch .index .shard .ShardId ;
38
39
import org .elasticsearch .indices .recovery .PeerRecoverySourceService ;
@@ -117,7 +118,7 @@ public void testCloseWhileRelocatingShards() throws Exception {
117
118
indices [i ] = indexName ;
118
119
}
119
120
120
- ensureGreen (indices );
121
+ ensureGreen (TimeValue . timeValueSeconds ( 60L ), indices );
121
122
assertAcked (client ().admin ().cluster ().prepareUpdateSettings ()
122
123
.setTransientSettings (Settings .builder ()
123
124
.put (EnableAllocationDecider .CLUSTER_ROUTING_REBALANCE_ENABLE_SETTING .getKey (), Rebalance .NONE .toString ())));
You can’t perform that action at this time.
0 commit comments