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

Do not use annotations to cache Elasticsearch API calls #2880

Merged
merged 1 commit into from
Apr 15, 2020

Conversation

barkbay
Copy link
Contributor

@barkbay barkbay commented Apr 15, 2020

This PR removes the use of the annotations as a cache to avoid some Elasticsearch API calls.
It does not handle the remote cluster case which, I think, deserves its own PR since the logic is a little bit more tricky than just removing some bits of code. I'll do it in a separate PR.

I have kept the logs at the info level, because I think it could be valuable to have them immediately in case something looks wrong, happy to discuss that choice though.

relates to #2864 and #2788

@barkbay barkbay added >bug Something isn't working v1.1.0 labels Apr 15, 2020
Copy link
Contributor

@sebgl sebgl left a comment

Choose a reason for hiding this comment

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

LGTM

@barkbay barkbay merged commit 467833b into elastic:master Apr 15, 2020
barkbay added a commit to barkbay/cloud-on-k8s that referenced this pull request Apr 15, 2020
This commit does not address the remote clusters API call which will be fixed in a following up PR.
barkbay added a commit that referenced this pull request Apr 15, 2020
* Clarify data migration function and unit tests (#2845)
* Do not use annotations to cache Elasticsearch API calls (#2880)

Co-authored-by: Sebastien Guilloux <contact.sebgl@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug Something isn't working v1.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants