Skip to content

Commit

Permalink
Remove version check for snapshot preserve causing issues with versio…
Browse files Browse the repository at this point in the history
…n upgrades (opensearch-project#3684)
  • Loading branch information
kotwanikunal authored Jun 23, 2022
1 parent 341c129 commit 877d733
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 877d733

Please sign in to comment.