Skip to content

Conversation

@original-brownbear
Copy link
Contributor

Just a small thing I still had lying around:

Some smaller improvements in the direction of #62275 and removal of some dead code and duplication.

Some smaller improvements in the direction of elastic#62275 and removal of some
dead code and duplication.
@original-brownbear original-brownbear added >non-issue :Distributed Coordination/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) v8.0.0 v7.11.0 labels Nov 6, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Allocation)

@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Nov 6, 2020

// Fail open there is no info available
final ClusterInfo clusterInfo = allocation.clusterInfo();
if (clusterInfo == null) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This check is dead code, both calling methods to this method use the clusterInfo before it runs so it's never null here for sure.

Copy link
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

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

LGTM.

@original-brownbear
Copy link
Contributor Author

Thanks Henning!

@original-brownbear original-brownbear merged commit efecaed into elastic:master Nov 6, 2020
@original-brownbear original-brownbear deleted the small-simplification-disk-threshold-decider branch November 6, 2020 14:24
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Nov 6, 2020
Some smaller improvements in the direction of elastic#62275 and removal of some
dead code and duplication.
original-brownbear added a commit that referenced this pull request Nov 6, 2020
Some smaller improvements in the direction of #62275 and removal of some
dead code and duplication.
@original-brownbear original-brownbear restored the small-simplification-disk-threshold-decider branch January 6, 2021 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Coordination/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) >non-issue Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v7.11.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants