forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Place the errors field first in bulk response
The bulk response is a map of fields that is inherently unordered. However, we have some control over the order in which fields are serialized. This commit places the errors field first to allow clients who want to incrementally parse the response until the errors field is encountered potentially encounter the field earlier. There is also a test added to inform us if a future version of jackson were to change the order of serialization.
- Loading branch information
1 parent
08c0b79
commit a6df688
Showing
2 changed files
with
63 additions
and
12 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