-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
spalger
merged 1 commit into
elastic:master
from
spalger:fix/es-archiver-race-condition-recovery
Jul 17, 2020
Merged
[esArchiver] actually re-delete the .kibana index if we lose recreate race #72354
spalger
merged 1 commit into
elastic:master
from
spalger:fix/es-archiver-race-condition-recovery
Jul 17, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Pinging @elastic/kibana-operations (Team:Operations) |
brianseeders
approved these changes
Jul 17, 2020
💚 Build SucceededBuild metrics
To update your PR or re-run it, just comment with: |
spalger
added a commit
to spalger/kibana
that referenced
this pull request
Jul 17, 2020
… race (elastic#72354) Co-authored-by: spalger <[email protected]>
spalger
added a commit
to spalger/kibana
that referenced
this pull request
Jul 17, 2020
… race (elastic#72354) Co-authored-by: spalger <[email protected]>
spalger
pushed a commit
to spalger/kibana
that referenced
this pull request
Jul 17, 2020
… race (elastic#72354) Co-authored-by: spalger <[email protected]> (cherry picked from commit ef875cf)
spalger
added a commit
that referenced
this pull request
Jul 18, 2020
…create race (#72354) (#72364) Co-authored-by: spalger <[email protected]>
spalger
added a commit
that referenced
this pull request
Jul 18, 2020
…create race (#72354) (#72363) Co-authored-by: spalger <[email protected]>
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)
This was referenced Jul 20, 2020
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.