Skip to content

Commit 7c5739b

Browse files
authored
Update version for batch shard allocation to 2.14 (opensearch-project#13469)
* Update version for batch shard allocation to 2.14 Signed-off-by: Shivansh Arora <hishiv@amazon.com>
1 parent 7c98954 commit 7c5739b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/main/java/org/opensearch/cluster/routing/allocation/AllocationService.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,9 @@ private void allocateExistingUnassignedShards(RoutingAllocation allocation) {
569569
Use batch mode if enabled and there is no custom allocator set for Allocation service
570570
*/
571571
Boolean batchModeEnabled = EXISTING_SHARDS_ALLOCATOR_BATCH_MODE.get(settings);
572-
if (batchModeEnabled && allocation.nodes().getMinNodeVersion().onOrAfter(Version.V_3_0_0) && existingShardsAllocators.size() == 2) {
572+
if (batchModeEnabled
573+
&& allocation.nodes().getMinNodeVersion().onOrAfter(Version.V_2_14_0)
574+
&& existingShardsAllocators.size() == 2) {
573575
/*
574576
If we do not have any custom allocator set then we will be using ShardsBatchGatewayAllocator
575577
Currently AllocationService will not run any custom Allocator that implements allocateAllUnassignedShards

0 commit comments

Comments
 (0)