From 362433d1bf0bfdc4b4e92dd1776ce46cb2df9ffe Mon Sep 17 00:00:00 2001 From: Shivansh Arora Date: Mon, 5 Feb 2024 14:38:48 +0530 Subject: [PATCH] Fix javadoc Signed-off-by: Shivansh Arora --- .../java/org/opensearch/gateway/PrimaryShardAllocator.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/src/main/java/org/opensearch/gateway/PrimaryShardAllocator.java b/server/src/main/java/org/opensearch/gateway/PrimaryShardAllocator.java index f51e1caf54b12..5046873830c01 100644 --- a/server/src/main/java/org/opensearch/gateway/PrimaryShardAllocator.java +++ b/server/src/main/java/org/opensearch/gateway/PrimaryShardAllocator.java @@ -69,7 +69,7 @@ * that holds a copy of the shard. The shard metadata from each node is compared against the * set of valid allocation IDs and for all valid shard copies (if any), the primary shard allocator * executes the allocation deciders to chose a copy to assign the primary shard to. - * + *

* Note that the PrimaryShardAllocator does *not* allocate primaries on index creation * (see {@link org.opensearch.cluster.routing.allocation.allocator.BalancedShardsAllocator}), * nor does it allocate primaries when a primary shard failed and there is a valid replica @@ -132,8 +132,7 @@ public AllocateUnassignedDecision makeAllocationDecision( /** * Transforms {@link FetchResult} of {@link NodeGatewayStartedShards} to {@link List} of {@link NodeGatewayStartedShards} * Returns null if {@link FetchResult} does not have any data. - * - * */ + */ private static List adaptToNodeStartedShardList(FetchResult shardsState) { if (!shardsState.hasData()) { return null;