-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: delete existing ISM policy when retention is disabled #17386
fix: delete existing ISM policy when retention is disabled #17386
Conversation
this is a tryout to fix the OpensearchExporterIT flaky test, but it could be also solving an existing unnoticed bug
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Let's also backport this to 8.5 and 8.4.
"DELETE", "_plugins/_ism/policies/" + configuration.retention.getPolicyName()); | ||
|
||
final var response = sendRequest(request, DeleteStateManagementPolicyResponse.class); | ||
return response.result().equals(DeleteStateManagementPolicyResponse.DELETED); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ so in case it doesn't exist this does not end up in a 404 but just returns a result. The API docs don't really answer that :/ but tests do:D
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin stable/8.4
git worktree add -d .worktree/backport-17386-to-stable/8.4 origin/stable/8.4
cd .worktree/backport-17386-to-stable/8.4
git switch --create backport-17386-to-stable/8.4
git cherry-pick -x 8f11aae6905fff244bae6cdb689ec12e28f5159e |
Successfully created backport PR for |
…is disabled (#17410) # Description Backport of #17386 to `stable/8.5`. relates to #17279 original author: @mustafadagher
…is disabled (#17418) # Description Backport of #17386 to `stable/8.4`. relates to #17279 original author: @mustafadagher
Description
Delete existing ISM policy when retention is disabled. This is a tryout to fix the OpensearchExporterIT flaky test, but it could be also solving an existing unnoticed bug
Related issues
closes #17279