Skip to content

Conversation

@danhermann
Copy link
Contributor

@danhermann danhermann commented Nov 6, 2020

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

@danhermann danhermann added >breaking :Data Management/Indices APIs APIs to create and manage indices and templates v8.0.0 labels Nov 6, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Indices APIs)

@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Nov 6, 2020
Comment on lines +184 to +185
registerTaskManagerListeners(ForceMergeAction.NAME); // main task
registerTaskManagerListeners(ForceMergeAction.NAME + "[n]"); // node level tasks
Copy link
Contributor Author

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

Comment on lines -321 to -322
public void upgradeIndexSettings(final UpgradeSettingsClusterStateUpdateRequest request,
final ActionListener<AcknowledgedResponse> listener) {
Copy link
Contributor Author

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 {
Copy link
Contributor Author

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.

@dakrone dakrone self-requested a review November 12, 2020 16:40
Copy link
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice stats :)

@danhermann danhermann merged commit c829f8e into elastic:master Nov 12, 2020
@danhermann danhermann deleted the 21337_remove_upgrade_api branch November 12, 2020 17:10
pgomulka added a commit that referenced this pull request Jul 9, 2021
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>breaking :Data Management/Indices APIs APIs to create and manage indices and templates Team:Data Management Meta label for data/management team v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the upgrade API

4 participants