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

Speed up DataTierAllocationDecider #78075

Prev Previous commit
Next Next commit
Remove outdated comment
  • Loading branch information
joegallo committed Sep 22, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 9ca47b0c44989ab7f445238a99719452aeadb631
Original file line number Diff line number Diff line change
@@ -159,8 +159,6 @@ private Decision shouldIndexPreferTier(IndexMetadata indexMetadata, Set<Discover
Optional<String> tier = preferredTierFunction.apply(tierPreference, allocation.nodes());
if (tier.isPresent()) {
String tierName = tier.get();
// The OpType doesn't actually matter here, because we have
// selected only a single tier as our "preferred" tier
if (allocationAllowed(tierName, roles)) {
return allocation.decision(Decision.YES, NAME,
"index has a preference for tiers [%s] and node has tier [%s]", tierPreference, tierName);