Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Remove the direct access of system indices in integration test cases #315

Open
weicongs-amazon opened this issue Nov 19, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@weicongs-amazon
Copy link
Contributor

From es 7.10, we will see this warning message: "this request accesses system indices: [.opendistro-anomaly-detectors], but in a future major version, direct access to system indices will be prevented by default"" when one system index is directly accessed.
We need refactor our integration test cases to remove these direct access before next ES major version release

@weicongs-amazon weicongs-amazon mentioned this issue Nov 19, 2020
5 tasks
@weicongs-amazon weicongs-amazon added the enhancement New feature or request label Nov 19, 2020
@kaituo
Copy link
Member

kaituo commented Nov 19, 2020

ref: elastic/elasticsearch#60945

It seems they enforce this through IndexNameExpressionResolver.checkSystemIndexAccess on the rest layer. The fix is to not to directly access them on the rest layer, but on transport layer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants