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 #2883

Merged
merged 2 commits into from
Apr 15, 2020

Conversation

barkbay
Copy link
Contributor

@barkbay barkbay commented Apr 15, 2020

This PR is a backport of #2880 in 1.1.0
It also takes the opportunity to backport the naming improvement from #2845

sebgl and others added 2 commits April 15, 2020 15:41
I got confused by the comment attached to the `IsMigratingData`
function, along with its unit tests. They somehow indicate we're
checking if a node has the only copy of a shard.
But the reality is we just check if there's any shard on that node.

This commit renames the function to `ShardsOnNode()`, modifies the
comment accordingly, and adapt the unit tests to the very simple logic
of the function.
This commit does not address the remote clusters API call which will be fixed in a following up PR.
@barkbay barkbay added backport For backport PRs v1.1.0 labels Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport For backport PRs v1.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants