Creating an ILM policy that has a negative min_age can cause problems loading cluster state #54041
Labels
>bug
:Core/Infra/Core
Core issues without another label
:Data Management/ILM+SLM
Index and Snapshot lifecycle management
This occurs in all released versions of ILM at time of writing to my knowledge.
Creating an ILM policy that has a phase with a negative
min_age
value, for example:Can cause this error while loading the cluster state:
Long stack trace, starts with: `[index_lifecycle] failed to parse field [policies]`
How this can occur:
TimeValue
does not currently reject negative values, and we often do not otherwise validate thatTimeValue
s accepted from users are non-negative.TimeValue.getStringRep()
, the method used to get a serialized version of theTimeValue
, the string returned does not include a unit, just a bare number.The text was updated successfully, but these errors were encountered: