Skip to content

Commit

Permalink
Fix formatting issues
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 15, 2024
1 parent 6212fca commit 2481176
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,7 @@ static IndexShardRoutingTable routingTable(
final IndexShardRoutingTable.Builder builder = new IndexShardRoutingTable.Builder(shardId);

// Add a shard that is unassigned to simulate #11945
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) {
builder.addShard(
Expand All @@ -159,7 +151,6 @@ static IndexShardRoutingTable routingTable(
);
}


for (final AllocationId activeId : activeIds) {
if (activeId.equals(primaryShard.allocationId())) {
continue;
Expand Down

0 comments on commit 2481176

Please sign in to comment.