Skip to content

[8.x] [Transform] Create upgrade mode (#117858) #119352

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

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

prwhelan
Copy link
Member

Backports the following commits to 8.x:

Prevent writes to the Transform system index while it is being reindexed
during upgrade.

- Add a new REST API, `_transform/set_upgrade_mode`, similar to `_ml`,
  which will enable via `?enabled` or disable (when omitted).
- Add a new Transport action, enabling or disabling upgrade mode.  When
  enabled, all Transforms will abort and move into the `waiting` state,
  preventing Transforms from running and writing to the system index.
- Hook into the System Index upgrade action, calling the new Transform
  action to set and unset upgrade mode.

Co-authored-by: David Kyle <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
@prwhelan prwhelan added :ml/Transform Transform >enhancement auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:ML Meta label for the ML team labels Dec 30, 2024
@elasticsearchmachine elasticsearchmachine merged commit de815de into elastic:8.x Dec 30, 2024
15 checks passed
@prwhelan prwhelan deleted the backport/8.x/pr-117858 branch December 30, 2024 15:49
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 >enhancement :ml/Transform Transform Team:ML Meta label for the ML team v8.18.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants