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

[Enterprise Search] Import correct exception identifier #161935

Conversation

navarone-feekery
Copy link
Contributor

Summary

The access control deletion function was importing the wrong isIndexNotFoundException to identify when an index doesn't exist. This would cause index deletion to fail if a search index is missing an access control index.

@navarone-feekery navarone-feekery added auto-backport Deprecated - use backport:version if exact versions are needed Team:EnterpriseSearch v8.9.0 labels Jul 14, 2023
@navarone-feekery navarone-feekery marked this pull request as ready for review July 14, 2023 09:27
@navarone-feekery navarone-feekery requested a review from a team July 14, 2023 09:27
@navarone-feekery navarone-feekery added the release_note:skip Skip the PR/issue when compiling release notes label Jul 14, 2023
@navarone-feekery navarone-feekery enabled auto-merge (squash) July 14, 2023 09:31
Copy link
Member

@sphilipse sphilipse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! One nitpick :)

Copy link
Member

@sphilipse sphilipse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@navarone-feekery navarone-feekery enabled auto-merge (squash) July 14, 2023 10:36
@navarone-feekery navarone-feekery merged commit 3077919 into elastic:main Jul 14, 2023
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 14 16 +2
securitySolution 411 415 +4
total +6

Total ESLint disabled count

id before after diff
enterpriseSearch 15 17 +2
securitySolution 490 494 +4
total +6

History

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

@navarone-feekery navarone-feekery deleted the navarone/fix-index-delete-failing branch July 14, 2023 12:54
kibanamachine pushed a commit that referenced this pull request Jul 14, 2023
## Summary

The access control deletion function was importing the wrong
`isIndexNotFoundException` to identify when an index doesn't exist. This
would cause index deletion to fail if a search index is missing an
access control index.

(cherry picked from commit 3077919)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.9

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

kibanamachine added a commit that referenced this pull request Jul 14, 2023
… (#161966)

# Backport

This will backport the following commits from `main` to `8.9`:
- [[Enterprise Search] Import correct exception identifier
(#161935)](#161935)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Navarone
Feekery","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-07-14T12:53:56Z","message":"[Enterprise
Search] Import correct exception identifier (#161935)\n\n##
Summary\r\n\r\nThe access control deletion function was importing the
wrong\r\n`isIndexNotFoundException` to identify when an index doesn't
exist. This\r\nwould cause index deletion to fail if a search index is
missing an\r\naccess control
index.","sha":"3077919bb85bac809d09d55401289145a7e96284","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","auto-backport","Team:EnterpriseSearch","v8.9.0"],"number":161935,"url":"https://github.com/elastic/kibana/pull/161935","mergeCommit":{"message":"[Enterprise
Search] Import correct exception identifier (#161935)\n\n##
Summary\r\n\r\nThe access control deletion function was importing the
wrong\r\n`isIndexNotFoundException` to identify when an index doesn't
exist. This\r\nwould cause index deletion to fail if a search index is
missing an\r\naccess control
index.","sha":"3077919bb85bac809d09d55401289145a7e96284"}},"sourceBranch":"main","suggestedTargetBranches":["8.9"],"targetPullRequestStates":[{"branch":"8.9","label":"v8.9.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: Navarone Feekery <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:EnterpriseSearch v8.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants