-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Remove deprecated _upgrade API #64732
Remove deprecated _upgrade API #64732
Conversation
Pinging @elastic/es-core-features (:Core/Features/Indices APIs) |
registerTaskManagerListeners(ForceMergeAction.NAME); // main task | ||
registerTaskManagerListeners(ForceMergeAction.NAME + "[n]"); // node level tasks |
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.
Replaced with a different index action so tasks are still tested
public void upgradeIndexSettings(final UpgradeSettingsClusterStateUpdateRequest request, | ||
final ActionListener<AcknowledgedResponse> listener) { |
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.
Did not appear to be called outside of the _upgrade
API.
/** | ||
* Upgrades the shard to the current version of Lucene and returns the minimum segment version | ||
*/ | ||
public org.apache.lucene.util.Version upgrade(UpgradeRequest upgrade) throws IOException { |
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.
Did not appear to be called outside of the _upgrade
API.
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, nice stats :)
…75136) indices upgrade api (/_upgrade or /{index}/_upgrade) was removed and _reindex is suggested to be used instead. There is no easy way to translate _upgrade request to _reindex requests. The dummy Upgrade action will return an exception to a user with a message indicating that _reindex should be used. upgrade api removal #64732 relates #51816
The
_upgrade
API has been superseded by the_reindex
API and was deprecated in 7.11.0. This commit removes it completely for the 8.0.0 release.Resolves #21337