Skip to content

Conversation

masseyke
Copy link
Member

This is the shell of the persistent task to reindex a data stream. It includes the transport action that creates the persistent task, returning the persistent task id. The persistent task currently just looks up all indices for a data stream, finds the ones that need upgrading, and then marks itself as complete. The actual implementation of reindex will come later, as will the ability to call it via a rest endpoint, and the ability to fetch the status of the reindex based on the persistent task id.
Note that when the reindex task is complete, it actually schedules the persistent task to complete in 1 day. This is to allow the user (most likely the kibana upgrade assistant) up to 1 day to check the status of a reindex after it completes. Related, this means that a user must currently find and kill the task if they want to run reindex again within 1 day of a failed run. This might be improved in a future PR by using a unique persistent task id.

@masseyke masseyke added backport :Data Management/Data streams Data streams and their lifecycles v8.18.0 labels Nov 21, 2024
@masseyke masseyke changed the title This is the shell of the persistent task to reindex a data stream. It includes the transport action that creates the persistent task, returning the persistent task id. The persistent task currently just looks up all indices for a data stream, finds the ones that need upgrading, and then marks itself as complete. The actual implementation of reindex will come later, as will the ability to call it via a rest endpoint, and the ability to fetch the status of the reindex based on the persistent task id. Note that when the reindex task is complete, it actually schedules the persistent task to complete in 1 day. This is to allow the user (most likely the kibana upgrade assistant) up to 1 day to check the status of a reindex after it completes. Related, this means that a user must currently find and kill the task if they want to run reindex again within 1 day of a failed run. This might be improved in a future PR by using a unique persistent task id. Reindex data stream persistent task (#116780) Nov 21, 2024
@masseyke masseyke added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Nov 22, 2024
@masseyke masseyke merged commit 76a06ca into elastic:8.x Nov 24, 2024
14 of 15 checks passed
@masseyke masseyke deleted the backport/8.x/pr-116780 branch November 24, 2024 19:34
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 v8.18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant