Skip to content

Commit f2098e0

Browse files
Increase timeout in indexRandom to 30s (#122598)
We have at least this one test where the combination of running in the single CPU environment and a relatively large document count + dynamic mapping updates exceeds the 10s threshold in very rare cases. Lets try moving this to 30s to hopefully turn "rare" into practically impossible. I could see this being an issue in other tests or becoming one, so I think it's fine to raise the timeout for all tests. closes #116126 closes #115815
1 parent fd25d3b commit f2098e0

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

muted-tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,6 @@ tests:
198198
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
199199
method: test {p0=ml/3rd_party_deployment/Test start deployment fails while model download in progress}
200200
issue: https://github.com/elastic/elasticsearch/issues/120810
201-
- class: org.elasticsearch.indices.mapping.UpdateMappingIntegrationIT
202-
issue: https://github.com/elastic/elasticsearch/issues/116126
203201
- class: org.elasticsearch.xpack.security.authc.service.ServiceAccountIT
204202
method: testAuthenticateShouldNotFallThroughInCaseOfFailure
205203
issue: https://github.com/elastic/elasticsearch/issues/120902

test/framework/src/main/java/org/elasticsearch/test/ESIntegTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,7 @@ public void indexRandom(boolean forceRefresh, boolean dummyDocuments, boolean ma
17831783
}
17841784
}
17851785
for (CountDownLatch operation : inFlightAsyncOperations) {
1786-
safeAwait(operation);
1786+
safeAwait(operation, TEST_REQUEST_TIMEOUT);
17871787
}
17881788
if (bogusIds.isEmpty() == false) {
17891789
// delete the bogus types again - it might trigger merges or at least holes in the segments and enforces deleted docs!

0 commit comments

Comments
 (0)