Skip to content

Commit d91d236

Browse files
DiannaHohenseemridula-s109
authored andcommitted
Fix testMaxQueueLatency bug (elastic#131112)
Cannot expect thread pool task to have completed because the test only asserts that the task has started execution Closes elastic#131093
1 parent 48f5251 commit d91d236

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,6 @@ tests:
520520
- class: org.elasticsearch.xpack.esql.action.EsqlActionBreakerIT
521521
method: testRowStatsProjectGroupByInt
522522
issue: https://github.com/elastic/elasticsearch/issues/131024
523-
- class: org.elasticsearch.common.util.concurrent.TaskExecutionTimeTrackingEsThreadPoolExecutorTests
524-
method: testMaxQueueLatency
525-
issue: https://github.com/elastic/elasticsearch/issues/131093
526523
- class: org.elasticsearch.xpack.esql.action.CrossClusterAsyncQueryStopIT
527524
method: testStopQueryLocal
528525
issue: https://github.com/elastic/elasticsearch/issues/121672

server/src/test/java/org/elasticsearch/common/util/concurrent/TaskExecutionTimeTrackingEsThreadPoolExecutorTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ public void testMaxQueueLatency() throws Exception {
146146
assertEquals("The max was just reset, should be zero", 0, executor.getMaxQueueLatencyMillisSinceLastPollAndReset());
147147
} finally {
148148
// Clean up.
149-
assertThat(executor.getOngoingTasks().toString(), executor.getOngoingTasks().size(), equalTo(0));
150149
executor.shutdown();
151150
executor.awaitTermination(10, TimeUnit.SECONDS);
152151
}

0 commit comments

Comments
 (0)