Skip to content

Commit

Permalink
Forbid negative values for index.unassigned.node_left.delayed_timeout (
Browse files Browse the repository at this point in the history
…#26828)

Change delayed_timeout to be a positiveTimeSetting, and add note that this is a breaking change
  • Loading branch information
DaveCTurner authored Sep 29, 2017
1 parent 1715fd7 commit 8fe9a20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions docs/reference/migration/migrate_7_0/indices.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 8fe9a20

Please sign in to comment.