Forbid negative values for index.unassigned.node_left.delayed_timeout (#26828)
Change delayed_timeout to be a positiveTimeSetting, and add note that this is a breaking change
This commit is contained in:
parent
1715fd7036
commit
8fe9a20982
|
@ -50,7 +50,7 @@ public final class UnassignedInfo implements ToXContentFragment, Writeable {
|
|||
public static final FormatDateTimeFormatter DATE_TIME_FORMATTER = Joda.forPattern("dateOptionalTime");
|
||||
|
||||
public static final Setting<TimeValue> INDEX_DELAYED_NODE_LEFT_TIMEOUT_SETTING =
|
||||
Setting.timeSetting("index.unassigned.node_left.delayed_timeout", TimeValue.timeValueMinutes(1), Property.Dynamic,
|
||||
Setting.positiveTimeSetting("index.unassigned.node_left.delayed_timeout", TimeValue.timeValueMinutes(1), Property.Dynamic,
|
||||
Property.IndexScope);
|
||||
/**
|
||||
* Reason why the shard is in unassigned state.
|
||||
|
|
|
@ -5,3 +5,8 @@
|
|||
|
||||
Due to cross-cluster search using `:` to separate a cluster and index name,
|
||||
index names may no longer contain `:`.
|
||||
|
||||
==== `index.unassigned.node_left.delayed_timeout` may no longer be negative
|
||||
|
||||
Negative values were interpreted as zero in earlier versions but are no
|
||||
longer accepted.
|
||||
|
|
Loading…
Reference in New Issue