Add Elasticsearch Java client plugin for 7.x-9.x#804
Open
Conversation
Add plugin for co.elastic.clients:elasticsearch-java, the modern Elasticsearch Java client that replaces the deprecated REST High Level Client. Covers both 7.x (RestClientTransport.performRequest) and 8.x/9.x (ElasticsearchTransportBase.performRequest) code paths using witness classes for version detection. Tested versions: 7.17.22, 8.5.3, 8.12.2, 8.17.0, 9.0.0. Local verification passed for 8.17.0.
elasticsearch-java 9.0.0 is compiled for JDK 17 (class version 61), so it cannot be tested in the JDK 8 test container. Split into a separate elasticsearch-java-9.x-scenario using Spring Boot 3.x and JDK 17 compiler target, added to plugins-jdk17-test.1.yaml.
Fix jar name in assembly.xml, correct support-version.list, and add to plugins-jdk17-test.1.yaml instead of replacing the JDK 8 scenario entry.
…oconfig - Use ES 9.0.0 server image instead of 8.17.0 for the 9.x scenario - Exclude ElasticsearchClientAutoConfiguration to avoid Spring Boot auto-config conflict with ES Java client constructor changes - Verified locally: 9.0.0 passed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
co.elastic.clients:elasticsearch-java, the modern Elasticsearch Java client that replaces the deprecated REST High Level ClientRestClientTransport.performRequestdirectly) and 8.x/9.x (ElasticsearchTransportBase.performRequest) code paths using witness classes for version detectionRestClient.getNodes()performRequestinterceptor creates ExitSpan withElasticsearch/{endpoint.id()}operation name, db.type=Elasticsearch, SpanLayer.DBTest plan