Index delete acknowledgement

I just deleted an index via java, and it seems to not have return
acknowledgement. When curling using command line, it
returns {"ok":true,"acknowledged":false}. Does this mean the index is
really deleted? What does acknowledged mean, and why would it ever return
false? Using 0.19.11.

Thanks,
KJ.

--

Can you show your code snippet that executes the delete index? The
following code should return your the acknowledgement:
DeleteIndexResponse response =
client.admin().indices().prepareDelete("index1").execute().actionGet();
System.out.println("acknowledged=" + response.acknowledged());

Martijn

On 19 December 2012 00:37, krispyjala krispyjala@gmail.com wrote:

I just deleted an index via java, and it seems to not have return
acknowledgement. When curling using command line, it returns
{"ok":true,"acknowledged":false}. Does this mean the index is really
deleted? What does acknowledged mean, and why would it ever return false?
Using 0.19.11.

Thanks,
KJ.

--

--
Met vriendelijke groet,

Martijn van Groningen

--

"acknowledged" = false means the cluster-wide delete index operation has
been executed on the master node, but not all nodes that hold shards of the
index did respond within the default timeout (10s). This does not
necessarily mean your index is not deleted, but it indicates non-responsive
nodes, and that may affect further operations especially those using locks
on the global cluster state, so this should draw your attention. Note,
there is a parameter "timeout" where you can increase the default timeout.
This may help in situations where indices are deleted while some nodes are
heavily loaded with other tasks. Think of "acknowledged" = true as an
equivalent to "not_timed_out" = true.

Best regards,

Jörg

On Wednesday, December 19, 2012 12:37:24 AM UTC+1, krispyjala wrote:

I just deleted an index via java, and it seems to not have return
acknowledgement. When curling using command line, it
returns {"ok":true,"acknowledged":false}. Does this mean the index is
really deleted? What does acknowledged mean, and why would it ever return
false? Using 0.19.11.

Thanks,
KJ.

--

The acknowledgement returns fine, but I want to know why it's false. Under
what circumstances? And does that mean that the index isn't really deleted
then?

-- KJ

On Wednesday, December 19, 2012 3:11:16 AM UTC-8, Martijn v Groningen wrote:

Can you show your code snippet that executes the delete index? The
following code should return your the acknowledgement:
DeleteIndexResponse response =
client.admin().indices().prepareDelete("index1").execute().actionGet();
System.out.println("acknowledged=" + response.acknowledged());

Martijn

On 19 December 2012 00:37, krispyjala <krisp...@gmail.com <javascript:>>
wrote:

I just deleted an index via java, and it seems to not have return
acknowledgement. When curling using command line, it returns
{"ok":true,"acknowledged":false}. Does this mean the index is really
deleted? What does acknowledged mean, and why would it ever return
false?
Using 0.19.11.

Thanks,
KJ.

--

--
Met vriendelijke groet,

Martijn van Groningen

--

In the end, even though we upped the timeout to 5 mins, it still returned
with false, so yeah you're right, something was operationally wrong. So we
bounced a few nodes, and then it worked.

On Wednesday, December 19, 2012 4:39:26 PM UTC-8, Jörg Prante wrote:

"acknowledged" = false means the cluster-wide delete index operation has
been executed on the master node, but not all nodes that hold shards of the
index did respond within the default timeout (10s). This does not
necessarily mean your index is not deleted, but it indicates non-responsive
nodes, and that may affect further operations especially those using locks
on the global cluster state, so this should draw your attention. Note,
there is a parameter "timeout" where you can increase the default timeout.
This may help in situations where indices are deleted while some nodes are
heavily loaded with other tasks. Think of "acknowledged" = true as an
equivalent to "not_timed_out" = true.

Best regards,

Jörg

On Wednesday, December 19, 2012 12:37:24 AM UTC+1, krispyjala wrote:

I just deleted an index via java, and it seems to not have return
acknowledgement. When curling using command line, it
returns {"ok":true,"acknowledged":false}. Does this mean the index is
really deleted? What does acknowledged mean, and why would it ever return
false? Using 0.19.11.

Thanks,
KJ.

--