Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,6 @@ tests:
- class: org.elasticsearch.packaging.test.DockerTests
method: test072RunEsAsDifferentUserAndGroup
issue: https://github.com/elastic/elasticsearch/issues/128031
- class: org.elasticsearch.index.engine.ThreadPoolMergeSchedulerTests
method: testSchedulerCloseWaitsForRunningMerge
issue: https://github.com/elastic/elasticsearch/issues/125236
- class: org.elasticsearch.packaging.test.DockerTests
method: test010Install
issue: https://github.com/elastic/elasticsearch/issues/125680
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -566,11 +566,12 @@ public void testSchedulerCloseWaitsForRunningMerge() throws Exception {
fail(e);
}
});
// test expects that there definitely is a running merge before closing the merge scheduler
mergeRunningLatch.await();
// closes the merge scheduler
t.start();
try {
assertTrue(t.isAlive());
// wait for the merge to actually run
mergeRunningLatch.await();
// ensure the merge scheduler is effectively "closed"
assertBusy(() -> {
MergeSource mergeSource2 = mock(MergeSource.class);
Expand Down