Closed swallez closed 5 months ago
The backport to 7.17
failed:
The process '/usr/bin/git' failed with exit code 1
To backport manually, run these commands in your terminal:
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-7.17 7.17
# Navigate to the new working tree
cd .worktrees/backport-7.17
# Create a new branch
git switch --create backport-760-to-7.17
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick --mainline 1 b5aed69e3311caef0090fc616b5628fb269e1e34
# Push it to GitHub
git push --set-upstream origin backport-760-to-7.17
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-7.17
Then, create a pull request where the base
branch is 7.17
and the compare
/head
branch is backport-760-to-7.17
.
This PR adds a number of improvements and bugfixes to the JSON and utility classes:
JSON framework:
BufferingJsonpMapper
allows the creation ofJsonGenerator
that store JSON events in a buffer that can be replayed. This is useful to efficiently create synthetic JSON documents.JsonpMapper.deserialize
method variant accepts the current JSON event. Fixes #741JsonpMapper
now enables theACCEPT_SINGLE_VALUE_AS_ARRAY
deserialization feature. This allows single values in a JSON stream to be considered as a single-value collection.API & transport framework:
ElasticsearchException
now holds the low level http response, so that the application can inspect the details of the error.call
methods, to make calling endpoints programmatically easier. This is for advanced use, as an applicaition will normally use theElasticsearchClient
that hides endpoint objects.BinaryDataResponse
can now easily be created from a byte array.Test framework:
ElasticsearchTestServer
now tries to contact an Elasticsearch server running onhttp://elastic:changeme@localhost:9200
before spawning a container.MockHttpClient
has been added that allows writing integration-like tests without requiring a running server. This is an alternative to usingcom.sun.net.httpserver.HttpServer
when we want to rest http response decoding but don't need to test the network layer.