Skip to content

Commit

Permalink
Fix the spotless checks
Browse files Browse the repository at this point in the history
Signed-off-by: Arpit Bandejiya <[email protected]>
  • Loading branch information
Arpit-Bandejiya committed Mar 14, 2024
1 parent 761adc3 commit f842b41
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -996,9 +996,7 @@ private boolean tryRelocateShard(BalancedShardsAllocator.ModelNode minNode, Bala
}
// This is a safety net which prevents un-necessary primary shard relocations from maxNode to minNode when
// doing such relocation wouldn't help in primary balance.
if (preferPrimaryBalance == true
&& shard.primary()
&& maxNode.numPrimaryShards() - minNode.numPrimaryShards() < 2) {
if (preferPrimaryBalance == true && shard.primary() && maxNode.numPrimaryShards() - minNode.numPrimaryShards() < 2) {
continue;
}

Expand Down

0 comments on commit f842b41

Please sign in to comment.