You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using elasticsearch 0.20.5 in Java 1.6 with Ubuntu 12.04 (but also happens with Windows), the system is frozen when you try to delete all indexes when there are no indexes yet into the elasticsearch. This error is a bit strange but I can reproduce it without any problem.
First of all create a new project in Eclipse (in my case but of course in command line or Intellij should do the same). Then add elasticsearch 0.20.5 as dependency and write one simple test:
But now also it works as expected, mostly because there is one index. (data directory is there already created so can work perfectly).
INFO: [Cold War] recovered [1] indices into cluster_state
So it seems that delete all command does not work correctly when there is no indexes to remove (first time you start the node). Maybe I am doing wrong about how to remove all indexes, but anyway there is still an error on operation which makes all application (test in my case) hungs.
Alex.
The text was updated successfully, but these errors were encountered:
hey, thanks for reporting this. This is indeed a bug. It manifests if you do the delete by query on a cluster without any indices. Yet, the fact that this works on the second try is that with delete by query you are only deleting all documents but not the index. So the index exists and the bug is not triggered. If you want to delete the index try client.admin().indices("index_name").prepareDelete().execute().actionGet(); <-- you can omit the name to del all indices but be careful!
s1monw
added a commit
to s1monw/elasticsearch
that referenced
this issue
Mar 1, 2013
Using elasticsearch 0.20.5 in Java 1.6 with Ubuntu 12.04 (but also happens with Windows), the system is frozen when you try to delete all indexes when there are no indexes yet into the elasticsearch. This error is a bit strange but I can reproduce it without any problem.
First of all create a new project in Eclipse (in my case but of course in command line or Intellij should do the same). Then add elasticsearch 0.20.5 as dependency and write one simple test:
Then I run the test and the output is:
But the test never ends, the actionGet() call does not return any result it is hung there.
Then I abort the test and I do the next modification in test:
And then it works as expected, but now comes the "paranoic" part, I rerun the first test again without preparing an index before deleting:
But now also it works as expected, mostly because there is one index. (data directory is there already created so can work perfectly).
So it seems that delete all command does not work correctly when there is no indexes to remove (first time you start the node). Maybe I am doing wrong about how to remove all indexes, but anyway there is still an error on operation which makes all application (test in my case) hungs.
Alex.
The text was updated successfully, but these errors were encountered: