Wait for index status does not raise an exception

Description

Hi there

I'm doing some tests with Elasticsearch 2.4.1.
Empty and fresh new elasticsearch.

Running tests as described at: https://github.com/dadoonet/hsearch-es-demo/tree/02-hibernatesearch

Only one node running. So the index status is yellow.

According to the code, it should fail with an exception but apparently it does not.

I wonder if actually you are passing the timeout value with a unit. If you don't this raise an exception which is not 408.

But with a correct time unit, it waits and fails.

Let me know if you need more details. I can try to work on a PR later next week.

Activity

Show:

Yoann Rodière December 7, 2016 at 5:17 PM

Hello . Thank you very much for this report, and sorry about the delay...

I just had a look at the issue, and it seems you're using the CREATE index management strategy. It appears this strategy was broken until 5.6.0.Beta4 and indeed did not wait for the index status at all.

This has been solved since, but there is still a problem: the strategy will only wait for the index status to become green just after it created the index; if the index already exists, it won't wait at all.
It's definitely something we should fix, I'll look into that.

Fixed

Details

Assignee

Reporter

Components

Affects versions

Priority

Created November 5, 2016 at 11:21 AM
Updated January 31, 2017 at 9:59 AM
Resolved December 8, 2016 at 10:11 PM