Skip to content

Commit 877d733

Browse files
authored
Remove version check for snapshot preserve causing issues with version upgrades (#3684)
1 parent 341c129 commit 877d733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/src/main/java/org/opensearch/test/rest/OpenSearchRestTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ protected static void wipeDataStreams() throws IOException {
656656
// Since the snapshots are shared within the cluster, another parallel run may delete all
657657
// snapshots in the repository.
658658
// For now we hack to prevent deletion of snapshots prefixed with "force_preserve"
659-
if (Version.CURRENT.onOrBefore(Version.V_2_1_0) && name.startsWith("force_preserve")) {
659+
if (name.startsWith("force_preserve")) {
660660
continue;
661661
}
662662
if (SnapshotState.valueOf((String) snapshotInfo.get("state")).completed() == false) {

0 commit comments

Comments
 (0)