While doing some tests, I thought I uncovered a bug in the
cluster-health/wait-for-yellow request. No matter what settings I tried,
the request would always return immediately with no timeout. I then
realized that the request is actually something like "wait for AT LEAST
yellow state". In other words, a GREEN state would satisfy a wait for
The code in question
response.getStatus().value() <= request.waitForStatus().value()
Obviously few people are interested in waiting for when a cluster goes from
GREEN to YELLLOW, but I am one of those few. I would love to propose a true
wait-for-yellow (and even red), but it would be difficult to come up with
an appropriately named call since the waitForYellow is taken and should be
renamed (breaking code in the process).
I am assuming the current code is a feature and not a bug, in which case
the documentation should reflect that thinking (willing to fix). But in the
meantime, how can one be notified if a cluster changes its state from GREEN
without constant polling?
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQAfpmsHe%2BfiRZ6_OD%2BV9bGO_nsoPPZn8w%3DgWBvJdLGzFg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.