Skip to content

Commit

Permalink
Allow old balancer until V10 (#113469)
Browse files Browse the repository at this point in the history
While setting the balancer/allocation type is still deprecated,
we are not going to remove it until next major.
  • Loading branch information
henningandersen committed Sep 30, 2024
1 parent b1b249d commit 61d5363
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
import org.elasticsearch.common.settings.Setting;
import org.elasticsearch.common.settings.Setting.Property;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.core.UpdateForV9;
import org.elasticsearch.core.UpdateForV10;
import org.elasticsearch.gateway.GatewayAllocator;
import org.elasticsearch.health.metadata.HealthMetadataService;
import org.elasticsearch.health.node.selection.HealthNodeTaskExecutor;
Expand Down Expand Up @@ -391,7 +391,7 @@ private static void addAllocationDecider(Map<Class<?>, AllocationDecider> decide
}
}

@UpdateForV9 // in v9 there is only one allocator
@UpdateForV10 // in v10 there is only one allocator
private static ShardsAllocator createShardsAllocator(
Settings settings,
ClusterSettings clusterSettings,
Expand Down

0 comments on commit 61d5363

Please sign in to comment.