From 877d733813ced52030f38e794aef81f53b072b35 Mon Sep 17 00:00:00 2001 From: Kunal Kotwani Date: Thu, 23 Jun 2022 16:53:52 -0700 Subject: [PATCH] Remove version check for snapshot preserve causing issues with version upgrades (#3684) --- .../java/org/opensearch/test/rest/OpenSearchRestTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/framework/src/main/java/org/opensearch/test/rest/OpenSearchRestTestCase.java b/test/framework/src/main/java/org/opensearch/test/rest/OpenSearchRestTestCase.java index 6e3618b708eff..dad8b53b1bf24 100644 --- a/test/framework/src/main/java/org/opensearch/test/rest/OpenSearchRestTestCase.java +++ b/test/framework/src/main/java/org/opensearch/test/rest/OpenSearchRestTestCase.java @@ -656,7 +656,7 @@ protected static void wipeDataStreams() throws IOException { // Since the snapshots are shared within the cluster, another parallel run may delete all // snapshots in the repository. // For now we hack to prevent deletion of snapshots prefixed with "force_preserve" - if (Version.CURRENT.onOrBefore(Version.V_2_1_0) && name.startsWith("force_preserve")) { + if (name.startsWith("force_preserve")) { continue; } if (SnapshotState.valueOf((String) snapshotInfo.get("state")).completed() == false) {