diff --git a/muted-tests.yml b/muted-tests.yml index 4662cb40985fe..6ef664152e372 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -411,9 +411,6 @@ tests: - class: org.elasticsearch.xpack.ilm.TimeSeriesDataStreamsIT method: testShrinkActionInPolicyWithoutHotPhase issue: https://github.com/elastic/elasticsearch/issues/126746 -- class: org.elasticsearch.repositories.blobstore.testkit.analyze.RepositoryAnalysisFailureIT - method: testFailsOnWriteException - issue: https://github.com/elastic/elasticsearch/issues/126747 - class: org.elasticsearch.xpack.test.rest.XPackRestIT method: test {p0=transform/transforms_start_stop/Test start/stop/start continuous transform} issue: https://github.com/elastic/elasticsearch/issues/126755 diff --git a/x-pack/plugin/snapshot-repo-test-kit/src/internalClusterTest/java/org/elasticsearch/repositories/blobstore/testkit/analyze/RepositoryAnalysisFailureIT.java b/x-pack/plugin/snapshot-repo-test-kit/src/internalClusterTest/java/org/elasticsearch/repositories/blobstore/testkit/analyze/RepositoryAnalysisFailureIT.java index 5594348088a8c..9b0627b332b8d 100644 --- a/x-pack/plugin/snapshot-repo-test-kit/src/internalClusterTest/java/org/elasticsearch/repositories/blobstore/testkit/analyze/RepositoryAnalysisFailureIT.java +++ b/x-pack/plugin/snapshot-repo-test-kit/src/internalClusterTest/java/org/elasticsearch/repositories/blobstore/testkit/analyze/RepositoryAnalysisFailureIT.java @@ -234,7 +234,9 @@ public void testFailsOnWriteException() { request.maxBlobSize(ByteSizeValue.ofBytes(10L)); request.abortWritePermitted(false); - final CountDown countDown = new CountDown(between(1, request.getBlobCount())); + // requests that create copies count as two blobs. Halving the count ensures that we trigger the disruption + // even if every request is a copy + final CountDown countDown = new CountDown(between(1, request.getBlobCount() / 2)); blobStore.setDisruption(new Disruption() {