NPE when clearing the index in Elasticsearch

Description

Stack trace:

This is the elasticsearch request:

And this is what elasticsearch responded:

Not sure why ES is answering with a version conflict when I send a clear command. In any case, this kind of response is causing the NPE in the line

Activity

Gustavo FernandesMay 26, 2017 at 2:20 PM

Awesome !
Regarding the version conflict, I don't expect you to do anything. I was in fact doing multiple cleans in parallel to the index, and that triggered this NPE. I fixed the code on our side and it should not happen anymore.

Yoann RodièreMay 26, 2017 at 1:41 PM

Thanks for reporting this.
I sent a PR to solve the immediate issue of us throwing an NPE.
Regarding the version conflict, I had a look and came to the conclusion that we cannot do much more than throwing an exception when that happens. If you think we should do something more, feel free to open another ticket!

Gustavo FernandesMay 24, 2017 at 8:27 AM
Edited

Ok, Elasticsearch can throw a version conflict during delete-by-query https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created May 24, 2017 at 8:25 AM
Updated June 13, 2017 at 10:38 AM
Resolved May 30, 2017 at 3:39 PM