Skip to content

Commit a154687

Browse files
kimchyareek
authored andcommitted
[TEST] increase ack timeout on large cluster
when we have a small machine running it with randmoized larger number of nodes (5), we need more time to process it
1 parent f9fc838 commit a154687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/elasticsearch/cluster/SimpleClusterStateTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public void testLargeClusterStatePublishing() throws Exception {
143143
logger.info("number of fields [{}], estimated bytes [{}]", numberOfFields, estimatedBytesSize);
144144
mapping.endObject().endObject().endObject();
145145
// if the create index is ack'ed, then all nodes have successfully processed the cluster state
146-
assertAcked(client().admin().indices().prepareCreate("test").addMapping("type", mapping).get());
146+
assertAcked(client().admin().indices().prepareCreate("test").addMapping("type", mapping).setTimeout("60s").get());
147147
ensureGreen(); // wait for green state, so its both green, and there are no more pending events
148148
MappingMetaData masterMappingMetaData = client().admin().indices().prepareGetMappings("test").setTypes("type").get().getMappings().get("test").get("type");
149149
for (Client client : clients()) {

0 commit comments

Comments
 (0)