Skip to content
Closed
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 @@ -259,9 +259,6 @@ tests:
- class: org.elasticsearch.smoketest.SmokeTestMonitoringWithSecurityIT
method: testHTTPExporterWithSSL
issue: https://github.com/elastic/elasticsearch/issues/122220
- class: org.elasticsearch.blocks.SimpleBlocksIT
method: testConcurrentAddBlock
issue: https://github.com/elastic/elasticsearch/issues/122324
- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
method: test {yaml=reference/cat/health/cat-health-example}
issue: https://github.com/elastic/elasticsearch/issues/122335
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,11 +405,13 @@ public void testConcurrentAddBlock() throws InterruptedException, ExecutionExcep
try {
startInParallel(threadCount, i -> {
try {
indicesAdmin().prepareAddBlock(block, indexName).get();
assertBusy(() -> assertAcked(indicesAdmin().prepareAddBlock(block, indexName).get()));
assertIndexHasBlock(block, indexName);
} catch (final ClusterBlockException e) {
assertThat(e.blocks(), hasSize(1));
assertTrue(e.blocks().stream().allMatch(b -> b.id() == block.getBlock().id()));
} catch (Exception e) {
throw new RuntimeException("Unable to ack an index block request", e);
}
});
assertIndexHasBlock(block, indexName);
Expand Down