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 java.lang.String |
NAME |
deprecationLogger, logger, settings| Constructor and Description |
|---|
NodeVersionAllocationDecider(Settings settings) |
| 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, canAllocate, canForceAllocatePrimary, canRebalance, canRebalance, canRemainlogDeprecatedSetting, logRemovedSetting, nodeNamepublic static final java.lang.String NAME
public NodeVersionAllocationDecider(Settings settings)
public Decision canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)
AllocationDeciderDecision whether the given shard routing can be
allocated on the given node. The default is Decision.ALWAYS.canAllocate in class AllocationDecider