Skip to content
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

Correcting index counts in data stream reindex status (#119658) #119790

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

masseyke
Copy link
Member

@masseyke masseyke commented Jan 8, 2025

We currently put the number of total number of indices and the total number of indices to be reindexed into the params of the data stream reindex task. However, if the write index needs to be upgraded then we do a rollover, which will change the total number of indices. Or if some external force changes the number of indices in the data stream, we don't pick that up. This is reported in the get-status API for the reindex task.
This change makes it so that we account for changes to the number of backing indices in the data stream.

@masseyke masseyke added >non-issue backport :Data Management/Data streams Data streams and their lifecycles auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) v8.18.0 labels Jan 8, 2025
@elasticsearchmachine elasticsearchmachine merged commit 5c72bce into elastic:8.x Jan 8, 2025
15 checks passed
@masseyke masseyke deleted the backport/8.x/pr-119658 branch January 8, 2025 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Data Management/Data streams Data streams and their lifecycles >non-issue v8.18.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants