File tree 1 file changed +3
-1
lines changed
server/src/test/java/org/elasticsearch/action/admin/indices/create
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 47
47
import org .elasticsearch .common .Priority ;
48
48
import org .elasticsearch .common .collect .ImmutableOpenMap ;
49
49
import org .elasticsearch .common .settings .Settings ;
50
+ import org .elasticsearch .common .unit .TimeValue ;
50
51
import org .elasticsearch .common .xcontent .XContentType ;
51
52
import org .elasticsearch .index .Index ;
52
53
import org .elasticsearch .index .IndexService ;
@@ -164,7 +165,8 @@ public void testShrinkIndexPrimaryTerm() throws Exception {
164
165
assertThat (dataNodes .size (), greaterThanOrEqualTo (2 ));
165
166
final DiscoveryNode [] discoveryNodes = dataNodes .values ().toArray (DiscoveryNode .class );
166
167
final String mergeNode = discoveryNodes [0 ].getName ();
167
- ensureGreen ();
168
+ // This needs more than the default timeout if 210(2*3*5*7) shards were created.
169
+ ensureGreen (TimeValue .timeValueSeconds (120 ));
168
170
169
171
// fail random primary shards to force primary terms to increase
170
172
final Index source = resolveIndex ("source" );
You can’t perform that action at this time.
0 commit comments