Phase has negative min age value of – this will be treated as a min age of 0 – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.7-8.9

Briefly, this error occurs when the minimum age value in the Elasticsearch phase is set to a negative number. Elasticsearch interprets this as a minimum age of 0. To resolve this, you should check your index lifecycle management (ILM) policy and ensure that the minimum age value is set to a positive number. Alternatively, if you want the phase to start immediately, you can explicitly set the minimum age value to 0.

This guide will help you check for common problems that cause the log ” phase has negative min_age value of [{}] – this will be treated as a min_age of 0 ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.

Log Context

Log “phase has negative min_age value of [{}] – this will be treated as a min_age of 0” classname is Phase.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

            // disallowed) so this is a hack to treat negative `min_age`s as 0 to prevent those errors.
            // They will be saved as `0` so this hack can be removed once we no longer have to read cluster states from 7.x.
            assert Version.CURRENT.major 


 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?