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

[esArchiver] actually re-delete the .kibana index if we lose recreate race #72354

Merged

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Jul 17, 2020

While attempting to fix race conditions that were assumed to be caused by the order of operations happening in the esArchiver I stumbled across what I now think to be the reason that #71910 didn't do what it was supposed to do; deleteKibanaIndex() is only called once and not retried when we learn that something else created the Kibana index before we could.

This change removes the use of lodash in the function and makes it more clear that we're only deleting the Kibana index once by using a local state variable, then clearing that state before we attempt to retry because the .kibana index couldn't be recreated.

@spalger spalger added Team:Operations Team label for Operations Team v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.10.0 v7.9.0 v7.8.1 labels Jul 17, 2020
@spalger spalger marked this pull request as ready for review July 17, 2020 21:48
@spalger spalger requested a review from a team as a code owner July 17, 2020 21:48
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@spalger spalger merged commit ef875cf into elastic:master Jul 17, 2020
@spalger spalger deleted the fix/es-archiver-race-condition-recovery branch July 17, 2020 23:41
spalger added a commit to spalger/kibana that referenced this pull request Jul 17, 2020
spalger added a commit to spalger/kibana that referenced this pull request Jul 17, 2020
spalger pushed a commit to spalger/kibana that referenced this pull request Jul 17, 2020
spalger added a commit that referenced this pull request Jul 18, 2020
spalger added a commit that referenced this pull request Jul 18, 2020
spalger added a commit that referenced this pull request Jul 18, 2020
… and [esArchiver] actually re-delete the .kibana index if we lose recreate race (#72354) (#72365)

Co-authored-by: spalger <[email protected]>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jul 20, 2020
* master:
  [Observability] Remove app logos (elastic#72259)
  Fix float percentiles line chart (elastic#71902)
  update chromedriver to 84 (elastic#72228)
  [esArchiver] actually re-delete the .kibana index if we lose recreate race (elastic#72354)
  [Maps] convert SavedGisMap to TS (elastic#72286)
  [DOCS] Removes occurrences of X-Pack Security and Reporting (elastic#72302)
  use WORKSPACE env var for stack_functional_integration tests, fix navigate path (elastic#71908)
  [Monitoring] Fix issue with ES node detail status (elastic#72298)
  [SIEM] Updates consumer in export_rule archive (elastic#72324)
  [kbn/dev-utils] add RunWithCommands utility (elastic#72311)
  [Security Solution][Endpoint][Exceptions] Only write manifest to policy when there are changes (elastic#72000)
  skip flaky suite (elastic#72339)
  [ML] Fix annotations pagination & change labels from letters to numbers (elastic#72204)
  [Lens] Fix switching with layers (elastic#71982)
  [Maps] 7.9 documenation updates (elastic#71893)
  docs: ✏️ add "Explore underlying data" user docs (elastic#70807)
  [Security Solution][Exceptions] - Remove initial add exception item button in builder (elastic#72215)
  Fix indentation level in code exploration doc (elastic#72274)
  register graph usage (elastic#72041)
  [Monitoring] Added a case for Alerting if security/ssl is disabled (elastic#71846)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v7.8.1 v7.9.0 v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants