We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f2f49b commit de56d71Copy full SHA for de56d71
server/src/main/java/org/elasticsearch/cluster/routing/allocation/allocator/BalancedShardsAllocator.java
@@ -765,7 +765,6 @@ private void allocateUnassigned() {
765
* TODO: We could be smarter here and group the shards by index and then
766
* use the sorter to save some iterations.
767
*/
768
- final AllocationDeciders deciders = allocation.deciders();
769
final PriorityComparator secondaryComparator = PriorityComparator.getAllocationComparator(allocation);
770
final Comparator<ShardRouting> comparator = (o1, o2) -> {
771
if (o1.primary() ^ o2.primary()) {
0 commit comments