-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Fix geoip databases index access after system feature migration #121196
Fix geoip databases index access after system feature migration #121196
Conversation
Hi @joegallo, I've created a changelog YAML for you. |
|
These existing tests pass regardless of that value, but the test I'm about to add needs the changed behavior.
This fails on main, but once merged in with my branch it'll pass.
…-access-after-reindex
I added a unit test in 4308559 that fails in the commit on which it was written (because that commit is based on main) but that passed on this branch after the merge commit because it works with the changes from this branch. |
Backporting this PR to |
So this is a bit of a weird territory, the combination of access and system indices is not well established. I tried to get to the bottom of this when I was refactoring the According to system level access:
However there is backwards compatibility mode and I think this is what we count here, right?
So, I am definitely not an expert but at least what you did matches what I read in the javadoc. |
Pinging @elastic/es-data-management (Team:Data Management) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am fairly sure that this is correct. If I am missing something, it is easily-enough reversible. So LGTM.
💔 Backport failed
You can use sqren/backport to manually backport by running |
#121196) (#121955) * Fix geoip databases index access after system feature migration (#121196) * fixing the test for 8.x --------- Co-authored-by: Joe Gallo <[email protected]>
…#121196) (#121953) * Fix geoip databases index access after system feature migration (#121196) * fixing the test for 8.x --------- Co-authored-by: Joe Gallo <[email protected]>
) (#121946) Co-authored-by: Keith Massey <[email protected]>
There's a difference in the index resolution between a net new system index and a net new system index behind an alias. This PR adds to an integration test in order to capture the wider scenario, but it also adds a unit test that hits just this one precise detail.
The change to the
IndexAbstractionResolver
is very small, and I think it makes sense and is defensible, but this isn't an area of the code I know especially well, so I'd love an expert's eyes in the review.