Skip to content

Commit

Permalink
Address code review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Redko <[email protected]>
  • Loading branch information
reta committed May 17, 2024
1 parent 9960350 commit edee766
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@ class OpensearchContainer extends GenericContainer<OpensearchContainer> {
ElasticsearchStorage.Builder newStorageBuilder() {

WebClientBuilder builder = WebClient.builder("http://" + hostPort())
// Elasticsearch 7 never returns a response when receiving an HTTP/2 preface instead of the
// more valid behavior of returning a bad request response, so we can't use the preface.
//
// TODO: find or raise a bug with Elastic
.factory(ClientFactory.builder().useHttp2Preface(false).build());
.factory(ClientFactory.builder().build());
builder.decorator((delegate, ctx, req) -> {
final HttpResponse response = delegate.execute(ctx, req);
return HttpResponse.of(response.aggregate().thenApply(r -> {
Expand Down

0 comments on commit edee766

Please sign in to comment.