-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Necessary fixes for
_bulk
endpoint (#1202)
For our V2 ingest processor, we need better implementation of `_bulk` API, which can handle more situations. Some shortcuts we took earlier, are no longer a viable option. Changes: * We used to take bulk payload lines and just process them in pairs (action/metadata line followed by document) which doesn't have to be the case. There can always be a `delete` call which isn't followed by any document. So the whole `BulkForEach` had to be rewritten. * Extending `NDJSON` type validation, so that single-line JSON is also a valid NDJSON 😉 * Adding some tests When loading sample datasets and having operational Kibana, every single request ends with code 200 🎊
- Loading branch information
Showing
5 changed files
with
266 additions
and
76 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
Oops, something went wrong.