-
Notifications
You must be signed in to change notification settings - Fork 25k
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 enrich policy bug #52179
Fix delete enrich policy bug #52179
Conversation
Pinging @elastic/es-core-features (:Core/Features/Ingest) |
Thanks @gaobinlong for opening this PR! We will be taking a look later. |
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.
Left a minor comment.
...h/src/main/java/org/elasticsearch/xpack/enrich/action/TransportDeleteEnrichPolicyAction.java
Show resolved
Hide resolved
@elasticmachine test this please |
@elasticmachine test this please |
Hey @gaobinlong the code style check failed. Can you run |
@martijnvg, OK, I have done that. |
@elasticmachine test this please |
…delete index api (elastic#52179) Don't rely on the delete index api to resolve all the enrich indices for a particular enrich policy using a '[policy_name]-*' wildcard expression. With this change, the delete policy api will resolve the indices to remove and pass that directly to the delete index api. This resolves a bug, that if `action.destructive_requires_name` setting has been set to true then the delete policy api is unable to remove the enrich indices related to the policy being deleted. Closes elastic#51228
…delete index api (#52448) Backport from #52179 Don't rely on the delete index api to resolve all the enrich indices for a particular enrich policy using a '[policy_name]-*' wildcard expression. With this change, the delete policy api will resolve the indices to remove and pass that directly to the delete index api. This resolves a bug, that if `action.destructive_requires_name` setting has been set to true then the delete policy api is unable to remove the enrich indices related to the policy being deleted. Closes #51228 Co-authored-by: bellengao <[email protected]>
This PR relates to #51228.
The changes are:
action.destructive_requires_name
cluster setting in TransportDeleteEnrichPolicyActionTests#testDeleteIsNotLocked method, ensure the test result is always correct whether the setting is set to true or not.