Skip to content

Commit

Permalink
Removing SLM check in tests for OpenSearch versions (#2604) (#2620)
Browse files Browse the repository at this point in the history
Signed-off-by: Vacha Shah <[email protected]>
(cherry picked from commit 5dd75bb)

Co-authored-by: Vacha Shah <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and VachaShah authored Mar 28, 2022
1 parent 6fbc5b9 commit 0fd6084
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,8 @@ protected boolean waitForAllSnapshotsWiped() {
private void wipeCluster() throws Exception {

// Clean up SLM policies before trying to wipe snapshots so that no new ones get started by SLM after wiping
if (nodeVersions.first().onOrAfter(LegacyESVersion.V_7_4_0)) { // SLM was introduced in version 7.4
if (nodeVersions.first().onOrAfter(LegacyESVersion.V_7_4_0) && nodeVersions.first().before(Version.V_1_0_0)) { // SLM was introduced
// in version 7.4
if (preserveSLMPoliciesUponCompletion() == false) {
// Clean up SLM policies before trying to wipe snapshots so that no new ones get started by SLM after wiping
deleteAllSLMPolicies();
Expand Down

0 comments on commit 0fd6084

Please sign in to comment.