-
Notifications
You must be signed in to change notification settings - Fork 24.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Java node client and deleting all indexes cause system hungs #2692
Comments
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 |
i also applied this to 0.20 |
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: