Skip to content
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

Upgrade assistant fails to reindex closed index #41572

Closed
DaveCTurner opened this issue Jul 19, 2019 · 4 comments · Fixed by #58890
Closed

Upgrade assistant fails to reindex closed index #41572

DaveCTurner opened this issue Jul 19, 2019 · 4 comments · Fixed by #58890
Labels
bug Fixes for quality problems that affect the customer experience Feature:Upgrade Assistant Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more

Comments

@DaveCTurner
Copy link

DaveCTurner commented Jul 19, 2019

Kibana version: 6.8.0

Elasticsearch version: 6.8.0

Server OS version:

$ uname -a
Darwin Davids-MBP-3.redacted 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64

Browser version: Safari Version 12.1.1 (14607.2.6.1.1)

Browser OS version:

$ uname -a
Darwin Davids-MBP-3.redacted 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64

Original install method (e.g. download page, yum, from source, etc.): .tar.gz package.

Describe the bug: The upgrade assistant correctly identifies the need to upgrade an index created in 5.6.16, despite this index being closed, and offers to reindex it. However the reindex process fails because the index is closed

Steps to reproduce:

  1. Create an index in 5.6.16 and close it.
  2. Upgrade to 6.8.0.
  3. Open the upgrade assistant to prepare the cluster for an upgrade to 7.x
  4. Use the reindex button to reindex the old closed index.

Expected behavior:

I expected either that the UI would indicate sooner that a reindex of a closed index was not possible, or else that the reindex process would open the index beforehand and close it afterwards.

Screenshots (if relevant):

image

Provide logs and/or server output (if relevant):

  log   [12:09:06.323] [error][upgrade_assistant] Reindexing step failed: [index_closed_exception] closed, with { index_uuid="G9zPO6uoQ3qsb6yOjTgzVw" & index="closed_index" } :: {"path":"/closed_index/_count","query":{},"statusCode":400,"response":"{\"error\":{\"root_cause\":[{\"type\":\"index_closed_exception\",\"reason\":\"closed\",\"index_uuid\":\"G9zPO6uoQ3qsb6yOjTgzVw\",\"index\":\"closed_index\"}],\"type\":\"index_closed_exception\",\"reason\":\"closed\",\"index_uuid\":\"G9zPO6uoQ3qsb6yOjTgzVw\",\"index\":\"closed_index\"},\"status\":400}"}
    at respond (/Users/davidturner/issues/2019-07-19-upgrade-assistant-warn-ancient-indices/kibana-6.8.0-darwin-x86_64/node_modules/elasticsearch/src/lib/transport.js:308:15)
    at checkRespForFailure (/Users/davidturner/issues/2019-07-19-upgrade-assistant-warn-ancient-indices/kibana-6.8.0-darwin-x86_64/node_modules/elasticsearch/src/lib/transport.js:267:7)
    at HttpConnector.<anonymous> (/Users/davidturner/issues/2019-07-19-upgrade-assistant-warn-ancient-indices/kibana-6.8.0-darwin-x86_64/node_modules/elasticsearch/src/lib/connectors/http.js:166:7)
    at IncomingMessage.wrapper (/Users/davidturner/issues/2019-07-19-upgrade-assistant-warn-ancient-indices/kibana-6.8.0-darwin-x86_64/node_modules/elasticsearch/node_modules/lodash/lodash.js:4935:19)
    at IncomingMessage.emit (events.js:194:15)
    at endReadableNT (_stream_readable.js:1103:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
@Bargs Bargs added Feature:Upgrade Assistant REASSIGN from Team:Core UI Deprecated label for old Core UI team labels Jul 19, 2019
@cjcenizal cjcenizal added Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more Team:Operations Team label for Operations Team and removed REASSIGN from Team:Core UI Deprecated label for old Core UI team labels Aug 5, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations

@cjcenizal cjcenizal added the bug Fixes for quality problems that affect the customer experience label Sep 27, 2019
@tylersmalley tylersmalley removed the Team:Operations Team label for Operations Team label Oct 1, 2019
@FriedCircuits
Copy link

Is there any updates on this issue? I have come across the same problem. Thanks.

@alisonelizabeth
Copy link
Contributor

Hi, @FriedCircuits! Thanks for letting us know. We are aware of the issue, but we do not have any updates at this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Upgrade Assistant Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants