Inconsistent formatting of ILM Phase's min_age in XPack usage API #87327
Labels
>bug
:Data Management/ILM+SLM
Index and Snapshot lifecycle management
Team:Data Management
Meta label for data/management team
Elasticsearch Version
Since 7.0.0
Installed Plugins
No response
Java Version
bundled
OS Version
all
Problem Description
The format used to serialize ILM policy phases to JSON in
GET _xpack/usage
is not the same as the one used forGET _ilm/policy
. Themin_age
property is serialized a millisecond value in the former (e.g.172800000
) (code), and as aTimeValue
(e.g."2d"
) il the latter (code).Furthermore, the format used in
xpack/usage
is incompatible withPUT /_ilm/policy/{name}
(RestPutLifecycleAction
) that expects aTimeValue
, meaning one cannot take the JSON output of_xpack/usage
and use is to create an ILM policy.Steps to Reproduce
On an ES with ILM policies, compare the output of
GET _xpack/usage
andGET _ilm/policy
.Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered: