Skip to content

HighLevelClient 7.14.0+ Appears to Break Compatibility with Amazon Elasticsearch Service #76479

@sskrla

Description

@sskrla

Elasticsearch Server Version: 7.10.2
Elasticsearch Client Version: HL 7.14.0-SNAPSHOT

Description of the problem including expected versus actual behavior:
#73910 introduces a number of compatibility checks, one of these is specifically for responses from 7.x servers to include a build_flavor of default. In the review @dakrone called out that OSS should likely be supported, but the comment appears to have been overlooked.

As a result, any one upgrading to this client version will have their clients exception during the first call of any kind against an OSS flavor of ElasticSearch.

Steps to reproduce:

Connect a HighLevelClient to a 7.x version of Amazon ElasticSearch Service and issue any request.

Provide logs (if relevant):

WARN  c.t.s.ServiceApplication Unhandled exception, terminating application:
org.elasticsearch.ElasticsearchException: Invalid or missing build flavor [oss]
	at org.elasticsearch.client.RestHighLevelClient$4.onResponse(RestHighLevelClient.java:2056)
	at org.elasticsearch.client.RestHighLevelClient$4.onResponse(RestHighLevelClient.java:2043)
	at org.elasticsearch.common.util.concurrent.ListenableFuture.notifyListenerDirectly(ListenableFuture.java:113)
	at org.elasticsearch.common.util.concurrent.ListenableFuture.done(ListenableFuture.java:100)
	at org.elasticsearch.common.util.concurrent.BaseFuture.set(BaseFuture.java:133)
	at org.elasticsearch.common.util.concurrent.ListenableFuture.onResponse(ListenableFuture.java:139)
	at org.elasticsearch.client.RestHighLevelClient$5.onSuccess(RestHighLevelClient.java:2129)
	at org.elasticsearch.client.RestClient$FailureTrackingResponseListener.onSuccess(RestClient.java:636)
	at org.elasticsearch.client.RestClient$1.completed(RestClient.java:376)
	at org.elasticsearch.client.RestClient$1.completed(RestClient.java:370)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions