-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[ML] Prevent UnusuedStatsRemover from failing when deleting documents in read-only indices #125408
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
base: main
Are you sure you want to change the base?
[ML] Prevent UnusuedStatsRemover from failing when deleting documents in read-only indices #125408
Conversation
Pinging @elastic/ml-core (Team:ML) |
Hi @valeriy42, I've created a changelog YAML for you. |
…olver for improved index handling
…b.com/valeriy42/elasticsearch into enhancement/1532-unused-stats-remover
…enhancement/1532-unused-stats-remover
@@ -31,6 +31,7 @@ abstract class AbstractExpiredJobDataRemover implements MlDataRemover { | |||
this.client = client; | |||
this.jobIterator = jobIterator; | |||
this.parentTaskId = parentTaskId; | |||
|
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.
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
…managing writable indices
…enhancement/1532-unused-stats-remover
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.
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
docs/changelog/125408.yaml:2
- Typo detected: 'UnusuedStatsRemover' should be corrected to 'UnusedStatsRemover'.
summary: Prevent `UnusuedStatsRemover` from failing when deleting documents in read-only indices
…b.com/valeriy42/elasticsearch into enhancement/1532-unused-stats-remover
UnusedStatsRemover deletes orphaned documents without an associated job. When the indices are made read-only it will start failing as read-only means no delete