Bulk API: Fix return of wrong request type on failed updates #6630
Labels
>bug
:Distributed/CRUD
A catch all label for issues around indexing, updating and getting a doc by id. Not search.
v1.2.2
v1.3.0
v2.0.0-beta1
Opening an issue as suggested by @dadoonet after the following discussion on the mailing list: https://groups.google.com/forum/#!topic/elasticsearch/HAA4Y8Qziqg
When a bulk update action fails, an "index" entry can be returned in the response.
Example bulk commands list with an update command failing because the second date can't be parsed:
Here is the actual response (elasticsearch v1.1):
The problem here concerns the bulk update response for the forth item. It's key is
index
while it should beupdate
, as in the following hand edited response:I didn't do a lot of code reading but a possible starting point for investigations is there: https://github.com/elasticsearch/elasticsearch/blob/1.1/src/main/java/org/elasticsearch/action/bulk/TransportShardBulkAction.java#L317
The text was updated successfully, but these errors were encountered: