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 keeps looping on resume reindex step if Kibana restarts #123616

Closed
bhavyarm opened this issue Jan 24, 2022 · 5 comments
Closed
Labels
blocker 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

@bhavyarm
Copy link
Contributor

Kibana version: 7.17 BC2

Elasticsearch version: 7.17 BC2

Server OS version: darwin_x86_64

Browser version: chrome latest

Browser OS version: OS X

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

Describe the bug: If the user is in the middle of reindexing and Kibana restarts - upgrade assistant displays reindex paused but clicking on resume reindex step - just keeps looping and displays reindex-paused - resume reindex step again.

Please note this is happening on shakespeare (index) dataset from 6.8.x.

Steps to reproduce:

  1. Start your 7.17 ES/Kibana with 6.8.20 data - I am slacking the data folder. Its too big for the github issue
  2. Go to upgrade assistant - click on reindexing in ES panel (I clicked on reindexing on indexes from top of the list)
  3. Restart Kibana
  4. Upgrade assistant displays reindex paused for shakespeare index pattern

Screen Shot 2022-01-24 at 10 46 23 AM

5. Click on reindex paused - > resume reindexing ->accept changes

Screen Shot 2022-01-24 at 10 47 17 AM

acceptchanges

6. Reindex starts but pauses at 65% and UA UI says resume reindexing again

Screen Shot 2022-01-24 at 10 51 33 AM

7. If you open index management - reindexed-shakespeare index exists but in yellow state

Screen Shot 2022-01-24 at 10 52 25 AM

@bhavyarm bhavyarm added bug Fixes for quality problems that affect the customer experience Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more Feature:Upgrade Assistant labels Jan 24, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/platform-deployment-management (Team:Deployment Management)

@bhavyarm
Copy link
Contributor Author

Network call -

Screen Shot 2022-01-24 at 10 58 28 AM

@alisonelizabeth
Copy link
Contributor

alisonelizabeth commented Jan 24, 2022

Still looking into this... but leaving my initial findings here:

It appears there is an issue with re-associating the credentials used to process the reindex task on restart. The credentials are undefined when the user tries to resume the reindex, which causes the loop. You can find the related code starting here. There is a "pause window", and eventually this expires and the paused message appears in the UI again.

I still haven't pinpointed the exact cause and/or when this regression might have occurred. There were changes made to this area of the code when we added support for API keys (#111451), although I think this is unrelated. We also added support for bulk reindexing ~2 years ago, which touched this area of the code. This wasn't heavily tested, so it's possible it was introduced then.

Also, note - in order to reproduce, I had to restart Kibana when the reindex process was on step 3, "Reindex documents".

@alisonelizabeth
Copy link
Contributor

PR open - #123727

@alisonelizabeth
Copy link
Contributor

Fixed via #123727

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker 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

No branches or pull requests

4 participants