Skip to content

[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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

valeriy42
Copy link
Contributor

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

@valeriy42 valeriy42 added >bug :ml Machine learning Team:ML Meta label for the ML team v8.18.1 v8.19.0 v9.1.0 labels Mar 21, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@elasticsearchmachine
Copy link
Collaborator

Hi @valeriy42, I've created a changelog YAML for you.

@davidkyle davidkyle added v9.0.1 auto-backport Automatically create backport pull requests when merged labels Mar 21, 2025
@valeriy42 valeriy42 requested a review from davidkyle March 21, 2025 14:32
@valeriy42 valeriy42 self-assigned this Mar 21, 2025
@@ -31,6 +31,7 @@ abstract class AbstractExpiredJobDataRemover implements MlDataRemover {
this.client = client;
this.jobIterator = jobIterator;
this.parentTaskId = parentTaskId;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Copy link
Member

@davidkyle davidkyle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@valeriy42 valeriy42 requested a review from Copilot April 14, 2025 14:54
Copy link

@Copilot Copilot AI left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged >bug :ml Machine learning Team:ML Meta label for the ML team v8.18.2 v8.19.0 v9.0.2 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants