Skip to content

[BACKPORT] Add pre-upgrade check to test cluster routing allocation is enabled#39817

Merged
bizybot merged 1 commit intoelastic:6.7from
bizybot:fix-internal-index-reindexer-67
Mar 12, 2019
Merged

[BACKPORT] Add pre-upgrade check to test cluster routing allocation is enabled#39817
bizybot merged 1 commit intoelastic:6.7from
bizybot:fix-internal-index-reindexer-67

Conversation

@bizybot
Copy link
Copy Markdown
Contributor

@bizybot bizybot commented Mar 8, 2019

When following the steps mentioned in upgrade guide
https://www.elastic.co/guide/en/elastic-stack/6.6/upgrading-elastic-stack.html
if we disable the cluster shard allocation but fail to enable it after
upgrading the nodes and plugins, the next step of upgrading internal
indices fails. As we did not check the bulk request response for reindexing,
we delete the old index assuming it has been created. This is fatal
as we cannot recover from this state.

This commit adds a pre-upgrade check to test the cluster shard
allocation setting and fail upgrade if it is disabled. In case there
are search or bulk failures then we remove the read-only block and
fail the upgrade index request.

Closes #39339

…lastic#39340)

When following the steps mentioned in upgrade guide
https://www.elastic.co/guide/en/elastic-stack/6.6/upgrading-elastic-stack.html
if we disable the cluster shard allocation but fail to enable it after
upgrading the nodes and plugins, the next step of upgrading internal
indices fails. As we did not check the bulk request response for reindexing,
we delete the old index assuming it has been created. This is fatal
as we cannot recover from this state.

This commit adds a pre-upgrade check to test the cluster shard
allocation setting and fail upgrade if it is disabled. In case there
are search or bulk failures then we remove the read-only block and
fail the upgrade index request.

Closes elastic#39339
@bizybot bizybot added >bug :Data Management/Indices APIs DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. backport v6.7.0 labels Mar 8, 2019
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features

@bizybot bizybot changed the title [Upgrade] Add pre-upgrade check to test cluster routing allocation is enabled [BACKPORT] Add pre-upgrade check to test cluster routing allocation is enabled Mar 8, 2019
@bizybot
Copy link
Copy Markdown
Contributor Author

bizybot commented Mar 8, 2019

@elasticmachine test this please

@bizybot bizybot merged commit 20c6be9 into elastic:6.7 Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport >bug :Data Management/Indices APIs DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. v6.7.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants