Merge pull request #12147 from kimchy/remove_double_elect
Remove double call to elect primaries
This commit is contained in:
commit
8a52a362dd
|
@ -175,8 +175,6 @@ public class AllocationService extends AbstractComponent {
|
|||
// now allocate all the unassigned to available nodes
|
||||
if (allocation.routingNodes().hasUnassigned()) {
|
||||
changed |= shardsAllocators.allocateUnassigned(allocation);
|
||||
// elect primaries again, in case this is needed with unassigned allocation
|
||||
changed |= electPrimariesAndUnassignedDanglingReplicas(allocation);
|
||||
}
|
||||
|
||||
// move shards that no longer can be allocated
|
||||
|
|
Loading…
Reference in New Issue