Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Rampreeth Ethiraj <ethirajrampreeth@gmail.com>
  • Loading branch information
rampreeth committed Jul 16, 2024
1 parent b7577d7 commit 070b695
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ static IndexShardRoutingTable routingTable(final Set<AllocationId> initializingI
return routingTable(initializingIds, Collections.singleton(primaryId), primaryId, false);
}

static IndexShardRoutingTable routingTable(final Set<AllocationId> initializingIds, final AllocationId primaryId, final boolean shouldAddUnassignedShard) {
static IndexShardRoutingTable routingTable(
final Set<AllocationId> initializingIds,
final AllocationId primaryId,
final boolean shouldAddUnassignedShard
) {
return routingTable(initializingIds, Collections.singleton(primaryId), primaryId, shouldAddUnassignedShard);
}

Expand Down Expand Up @@ -143,7 +147,9 @@ static IndexShardRoutingTable routingTable(

// Add a shard that is unassigned to simulate #11945
if (shouldAddUnassignedShard) {
builder.addShard(TestShardRouting.newShardRoutingWithNullAllocationId(shardId, null, null, false, ShardRoutingState.UNASSIGNED));
builder.addShard(
TestShardRouting.newShardRoutingWithNullAllocationId(shardId, null, null, false, ShardRoutingState.UNASSIGNED)
);
}

for (final AllocationId initializingId : initializingIds) {
Expand Down

0 comments on commit 070b695

Please sign in to comment.