diff --git a/x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/slm/SLMSnapshotBlockingIntegTests.java b/x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/slm/SLMSnapshotBlockingIntegTests.java index e8e6bab0370fd..13397d20e0c88 100644 --- a/x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/slm/SLMSnapshotBlockingIntegTests.java +++ b/x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/slm/SLMSnapshotBlockingIntegTests.java @@ -215,6 +215,10 @@ public void testRetentionWhileSnapshotInProgress() throws Exception { SnapshotsStatusResponse s = client().admin().cluster().prepareSnapshotStatus(REPO).setSnapshots(completedSnapshotName).get(); assertNull("expected no snapshot but one was returned", s.getSnapshots().get(0)); + } catch (RepositoryException e) { + // Concurrent status calls and write operations may lead to failures in determining the current repository generation + // TODO: Remove this hack once tracking the current repository generation has been made consistent + throw new AssertionError(e); } catch (SnapshotMissingException e) { // Great, we wanted it to be deleted! }