-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[Transform] Check alias during update #124773
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
Conversation
When the Transform System Index has been reindexed and aliased, we should check the Transform Update index against the alias when updating the Transform Config.
|
Pinging @elastic/ml-core (Team:ML) |
| long lastCheckpoint = currentState.v1().getTransformState().getCheckpoint(); | ||
|
|
||
| // if: the state is stored on the latest index, it does not need an update | ||
| if (currentState.v2().getIndex().equals(TransformInternalIndexConstants.LATEST_INDEX_VERSIONED_NAME)) { |
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.
LATEST_INDEX_VERSIONED_NAME and LATEST_INDEX_NAME are the same strings:
https://github.com/elastic/elasticsearch/blob/main/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/transform/transforms/persistence/TransformInternalIndexConstants.java#L39
When the Transform System Index has been reindexed and aliased, we should check the Transform Update index against the alias when updating the Transform Config.
When the Transform System Index has been reindexed and aliased, we should check the Transform Update index against the alias when updating the Transform Config.
When the Transform System Index has been reindexed and aliased, we should check the Transform Update index against the alias when updating the Transform Config.
Verified locally:
This change is for ES versions < 9.1 and will be different for 9.1+, since we will pull Index/Alias metadata via the ProjectResolver.