Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bulk: Failed preparsing does not fail whole bulk request
If a preparsing of the source is needed (due to mapping configuration, which extracts the routing/id value from the source) and the source is not valid JSON, then the whole bulk request is failed instead of a single BulkRequest. This commit ensures, that a broken JSON request is not forwarded to the destination shard and creates an appropriate BulkItemResponse, which includes a failure. This also implied changing the BulkItemResponse serialization, because one cannot be sure anymore, if a response includes an ID, in case it was not specified and could not be extracted from the JSON. Closes #4745
- Loading branch information
Showing
5 changed files
with
108 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters