public class NodeVersionAllocationDecider extends AllocationDecider
IndexFormatTooNewException
on the lowest level since it might have already written segments that use a new postings format or codec that is not
available on the target node.Modifier and Type | Field and Description |
---|---|
static String |
NAME |
componentSettings, logger, settings
Constructor and Description |
---|
NodeVersionAllocationDecider(Settings settings,
RecoverySettings recoverySettings) |
Modifier and Type | Method and Description |
---|---|
Decision |
canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation)
Returns a
Decision whether the given shard routing can be
allocated on the given node. |
canAllocate, canAllocate, canRebalance, canRemain
nodeName
public static final String NAME
@Inject public NodeVersionAllocationDecider(Settings settings, RecoverySettings recoverySettings)
public Decision canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)
AllocationDecider
Decision
whether the given shard routing can be
allocated on the given node. The default is Decision.ALWAYS
.canAllocate
in class AllocationDecider
Copyright © 2009–2015. All rights reserved.