mooky
March 15, 2011, 6:18pm
1
v0.15.2
Im doing the following to query the health of a particular index:
client.admin()
.cluster()
.health(
clusterHealthRequest()
.indices(new String[]{"complete-bollox"})
.waitForGreenStatus()
.timeout(timeValueMillis(10000))
)
.actionGet()
I always get GREEN status for an index that definitely does not exist.
-Nick
kimchy
(Shay Banon)
March 15, 2011, 7:26pm
2
If you check the timed out flag, then you will see its true. But, it should be RED as well, I opened an issue: Cluster Health API: Asking for health on an index that does not exists should return RED status · Issue #781 · elastic/elasticsearch · GitHub .
On Tuesday, March 15, 2011 at 8:18 PM, Mooky wrote:
v0.15.2
Im doing the following to query the health of a particular index:
client.admin()
.cluster()
.health(
clusterHealthRequest()
.indices(new String {"complete-bollox"})
.waitForGreenStatus()
.timeout(timeValueMillis(10000))
)
.actionGet()
I always get GREEN status for an index that definitely does not exist.
-Nick
mooky
March 15, 2011, 11:39pm
3
Im pretty sure it wasnt timing out. Will have to check again - maybe
as I was fiddling around I left the timeout very low.
Will update the issue accordingly.
Thanks,
-Nick
On 15 March 2011 19:26, Shay Banon shay.banon@elasticsearch.com wrote:
If you check the timed out flag, then you will see its true. But, it should
be RED as well, I opened an
issue: Cluster Health API: Asking for health on an index that does not exists should return RED status · Issue #781 · elastic/elasticsearch · GitHub .
On Tuesday, March 15, 2011 at 8:18 PM, Mooky wrote:
v0.15.2
Im doing the following to query the health of a particular index:
client.admin()
.cluster()
.health(
clusterHealthRequest()
.indices(new String {"complete-bollox"})
.waitForGreenStatus()
.timeout(timeValueMillis(10000))
)
.actionGet()
I always get GREEN status for an index that definitely does not exist.
-Nick
mooky
March 15, 2011, 11:40pm
4
Oh, and being picky can we make the indices method a var-args?
clusterHealthRequest()
.indices(new String {"complete-bollox"})
-Nick
On 15 March 2011 23:39, Nick Minutello nick.minutello@gmail.com wrote:
Im pretty sure it wasnt timing out. Will have to check again - maybe
as I was fiddling around I left the timeout very low.
Will update the issue accordingly.
Thanks,
-Nick
On 15 March 2011 19:26, Shay Banon shay.banon@elasticsearch.com wrote:
If you check the timed out flag, then you will see its true. But, it should
be RED as well, I opened an
issue: Cluster Health API: Asking for health on an index that does not exists should return RED status · Issue #781 · elastic/elasticsearch · GitHub .
On Tuesday, March 15, 2011 at 8:18 PM, Mooky wrote:
v0.15.2
Im doing the following to query the health of a particular index:
client.admin()
.cluster()
.health(
clusterHealthRequest()
.indices(new String {"complete-bollox"})
.waitForGreenStatus()
.timeout(timeValueMillis(10000))
)
.actionGet()
I always get GREEN status for an index that definitely does not exist.
-Nick
kimchy
(Shay Banon)
March 15, 2011, 11:43pm
5
Its is "var agr'ed" in the constructor for the ClusterHealthRequest class, and in the prepareHealth(String... indices) API.
On Wednesday, March 16, 2011 at 1:40 AM, Nick Minutello wrote:
Oh, and being picky can we make the indices method a var-args?
clusterHealthRequest()
.indices(new String {"complete-bollox"})
-Nick
On 15 March 2011 23:39, Nick Minutello nick.minutello@gmail.com wrote:
Im pretty sure it wasnt timing out. Will have to check again - maybe
as I was fiddling around I left the timeout very low.
Will update the issue accordingly.
Thanks,
-Nick
On 15 March 2011 19:26, Shay Banon shay.banon@elasticsearch.com wrote:
If you check the timed out flag, then you will see its true. But, it should
be RED as well, I opened an
issue: Cluster Health API: Asking for health on an index that does not exists should return RED status · Issue #781 · elastic/elasticsearch · GitHub .
On Tuesday, March 15, 2011 at 8:18 PM, Mooky wrote:
v0.15.2
Im doing the following to query the health of a particular index:
client.admin()
.cluster()
.health(
clusterHealthRequest()
.indices(new String {"complete-bollox"})
.waitForGreenStatus()
.timeout(timeValueMillis(10000))
)
.actionGet()
I always get GREEN status for an index that definitely does not exist.
-Nick
mooky
March 16, 2011, 12:02am
6
Roger. Will use that instead. Chairs
On 15 March 2011 23:43, Shay Banon shay.banon@elasticsearch.com wrote:
Its is "var agr'ed" in the constructor for the ClusterHealthRequest class,
and in the prepareHealth(String... indices) API.
On Wednesday, March 16, 2011 at 1:40 AM, Nick Minutello wrote:
Oh, and being picky can we make the indices method a var-args?
clusterHealthRequest()
.indices(new String {"complete-bollox"})
-Nick
On 15 March 2011 23:39, Nick Minutello nick.minutello@gmail.com wrote:
Im pretty sure it wasnt timing out. Will have to check again - maybe
as I was fiddling around I left the timeout very low.
Will update the issue accordingly.
Thanks,
-Nick
On 15 March 2011 19:26, Shay Banon shay.banon@elasticsearch.com wrote:
If you check the timed out flag, then you will see its true. But, it should
be RED as well, I opened an
issue: Cluster Health API: Asking for health on an index that does not exists should return RED status · Issue #781 · elastic/elasticsearch · GitHub .
On Tuesday, March 15, 2011 at 8:18 PM, Mooky wrote:
v0.15.2
Im doing the following to query the health of a particular index:
client.admin()
.cluster()
.health(
clusterHealthRequest()
.indices(new String {"complete-bollox"})
.waitForGreenStatus()
.timeout(timeValueMillis(10000))
)
.actionGet()
I always get GREEN status for an index that definitely does not exist.
-Nick
zohar
(zohar)
March 17, 2011, 3:08pm
7
Confirmed it does time out - just status is wrong.
-Nick