-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[Transform] Create upgrade mode #117858
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
[Transform] Create upgrade mode #117858
Conversation
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.
Hi @prwhelan, I've created a changelog YAML for you. |
Pinging @elastic/ml-core (Team:ML) |
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
x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/Transform.java
Outdated
Show resolved
Hide resolved
) { | ||
var wasAlreadyInUpgradeMode = (boolean) preUpgradeMetadata.getOrDefault("already_in_upgrade_mode", false); | ||
if (wasAlreadyInUpgradeMode) { | ||
// Transform was already in upgrade mode before system indices upgrade started - we shouldn't disable it |
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.
🤔 nice
…transform/Transform.java Co-authored-by: David Kyle <[email protected]>
@elasticmachine update branch |
@elasticmachine update branch |
💚 Backport successful
|
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]>
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]>
Prevent writes to the Transform system index while it is being reindexed during upgrade.
_transform/set_upgrade_mode
, similar to_ml
, which will enable via?enabled
or disable (when omitted).waiting
state, preventing Transforms from running and writing to the system index.