Skip to content

Commit

Permalink
Do not set timeout for IndexRequests in GatewayIndexStateIT (#38196)
Browse files Browse the repository at this point in the history
CI might not be fast enough to publish a dynamic mapping update within 100ms.

Backport of #38147
  • Loading branch information
dnhatn authored Feb 1, 2019
1 parent e633c24 commit 5122ea3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public void testSimpleOpenClose() throws Exception {

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
Expand Down Expand Up @@ -168,7 +168,7 @@ public void testSimpleOpenClose() throws Exception {

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
Expand Down Expand Up @@ -229,7 +229,7 @@ public void testJustMasterNodeAndJustDataNode() throws Exception {
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 {
Expand Down

0 comments on commit 5122ea3

Please sign in to comment.