Skip to content

Commit 213d332

Browse files
committed
Merge branch 'main' of github.com:marciw/elasticsearch-java
2 parents 806d8e9 + cc82ca6 commit 213d332

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ before we can accept pull requests from you.
1313

1414
### Prerequisites
1515

16-
You need at least Java 11 to build the project, even though the code targets Java 8. The project is built with `Gradle`. You don't have to install it, and can use the provided `gradlew` that will install the required version if needed.
16+
You need at least Java 17 to build the project. The project is built with `Gradle`. You don't have to install it, and can use the provided `gradlew` that will install the required version if needed.
1717

1818
Docker is used for some tests to spawn an Elasticsearch server.
1919

docs/reference/setup/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ mapped_pages:
77

88
Requirements:
99

10-
* Java 8 or later.
10+
* Java 17 or later.
1111
* A JSON object mapping library to allow seamless integration of your application classes with the Elasticsearch API. The Java client has support for [Jackson](https://github.com/FasterXML/jackson) or a [JSON-B](https://github.com/eclipse-ee4j/jsonb-api) library like [Eclipse Yasson](https://github.com/eclipse-ee4j/yasson).
1212

1313
Releases are hosted on [Maven Central](https://search.maven.org/search?q=g:co.elastic.clients). If you are looking for a SNAPSHOT version, the Elastic Maven Snapshot repository is available at [https://snapshots.elastic.co/maven/](https://snapshots.elastic.co/maven/).

java-client/src/test/java/co/elastic/clients/transport/rest5_client/low_level/sniffer/ElasticsearchNodesSnifferTests.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,7 @@ private static SniffResponse buildSniffResponse(ElasticsearchNodesSniffer.Scheme
288288
}
289289

290290
List<String> roles = Arrays.asList(
291-
new String[] { "master", "data", "ingest", "data_content", "data_hot", "data_warm", "data_cold", "data_frozen" }
292-
);
291+
"master", "data", "ingest", "data_content", "data_hot", "data_warm", "data_cold", "data_frozen");
293292
Collections.shuffle(roles, getRandom());
294293
generator.writeArrayFieldStart("roles");
295294
for (String role : roles) {
@@ -373,6 +372,6 @@ static SniffResponse buildResponse(String nodesInfoBody, List<Node> nodes) {
373372
}
374373

375374
private static int randomErrorResponseCode() {
376-
return randomIntBetween(400, 599);
375+
return randomIntBetween(500, 599);
377376
}
378377
}

0 commit comments

Comments
 (0)