Do not set timeout for IndexRequests in GatewayIndexStateIT
CI might not be fast enough to publish a dynamic mapping update within 100ms.
Backport of
@@ -124,7 +124,7 @@ public class GatewayIndexStateIT extends ESIntegTestCase {
logger.info("--> trying to index into a closed index ...");
try {
- client().prepareIndex("test", "type1", "1").setSource("field1", "value1").setTimeout("1s").execute().actionGet();
+ client().prepareIndex("test", "type1", "1").setSource("field1", "value1").execute().actionGet();
fail();
} catch (IndexClosedException e) {
// all is well
@@ -168,7 +168,7 @@ public class GatewayIndexStateIT extends ESIntegTestCase {
logger.info("--> trying to index into a closed index ...");
try {
- client().prepareIndex("test", "type1", "1").setSource("field1", "value1").setTimeout("1s").execute().actionGet();
+ client().prepareIndex("test", "type1", "1").setSource("field1", "value1").execute().actionGet();
fail();
} catch (IndexClosedException e) {
// all is well
@@ -229,7 +229,7 @@ public class GatewayIndexStateIT extends ESIntegTestCase {
logger.info("--> create an index");
client().admin().indices().prepareCreate("test").execute().actionGet();
- client().prepareIndex("test", "type1").setSource("field1", "value1").setTimeout("100ms").execute().actionGet();
+ client().prepareIndex("test", "type1").setSource("field1", "value1").execute().actionGet();
}
public void testTwoNodesSingleDoc() throws Exception {
