Do not set timeout for IndexRequests in GatewayIndexStateIT (#38147)
CI might not be fast enough to publish a dynamic mapping update within 100ms.
This commit is contained in:
parent
c1270e97b0
commit
2e475d63f7
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue