-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 tells the user to try again after reindex fails without clear remediation steps #123638
Comments
Pinging @elastic/platform-deployment-management (Team:Deployment Management) |
@cjcenizal that ( #123616) is dealing with the bug of resume reindex without any errors whereas this one is for the case when reindex fails with error but upgrade assistant UI is saying "Try again". So two different states. Thanks! |
Thanks @bhavyarm. Am I correct that the steps to repro are identical, and yet we're still encountering two different possible outcomes? So we need to dig deeper to understand what's causing this variability? |
@cjcenizal yep. Looks like it. Thanks! |
@cjcenizal I am going to look at both issue at the same time 👍 |
@bhavyarm are you able to consistently reproduce this? I'm having a hard time. Do you know at what step in the reindexing process you are restarting Kibana to trigger this error? |
I'm still not able to reproduce this yet. However, based on the error in your screenshot, it would appear that UA thinks it's on a different step in the reindexing process than it actually is, i.e., it thinks it has not created a new index yet so it attempts to create one again and the error occurs because it already exists. This is the area of the code where the error is triggered: https://github.com/elastic/kibana/blob/7.17/x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.ts#L493. |
@alisonelizabeth I started reindexing the indices from the top - had multiple reindex operations running when I restarted Kibana. I have the ES/Kibana in which this error happened in my local. Let me know if it helps you to take a look at it. Thanks! |
Thanks @bhavyarm! @sabarasaba and @sebelga found a way to replicate the behavior. |
Fixed via #123817. |
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 Kibana restarts during reindexing - Upgrade assistant displays reindex fails for some indexes and if user tries to reindex those indices again - it keeps failing. But "Try again" button is active which gives the impression that user can try to reindex again to resolve the failure.
This needs to be fixed to explain the remediation steps clearly.
Steps to reproduce:
5. Click on index and you can see that reindexing failed because of the error: ``` {"error":{"root_cause":[{"type":"resource_already_exists_exception","reason":"index [reindexed-v7-kibana_sample_data_logs/HITu6ptSSNyzWKwUxoW9Kg] already exists","index_uuid":"HITu6ptSSNyzWKwUxoW9Kg","index":"reindexed-v7-kibana_sample_data_logs"}],"type":"resource_already_exists_exception","reason":"index [reindexed-v7-kibana_sample_data_logs/HITu6ptSSNyzWKwUxoW9Kg] already exists","index_uuid":"HITu6ptSSNyzWKwUxoW9Kg","index":"reindexed-v7-kibana_sample_data_logs"},"status":400} ```
6. But "Try again" button is active which gives the impression to the user to that problem can be fixed.
Kibana logs:
The text was updated successfully, but these errors were encountered: