Skip to content

Commit f2da65e

Browse files
committed
Merge branch 'main' into ensure-safe-engine-access-in-refresh-listeners
2 parents 6bcf4a8 + 29ac261 commit f2da65e

File tree

242 files changed

+3390
-1642
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

242 files changed

+3390
-1642
lines changed

.editorconfig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,7 @@ indent_size = 4
209209
max_line_length = 140
210210
ij_java_class_count_to_use_import_on_demand = 999
211211
ij_java_names_count_to_use_import_on_demand = 999
212-
# The first '@*,' is a workaround for https://youtrack.jetbrains.com/issue/IDEA-368382/Auto-import-puts-java-imports-first-even-when-Editor-Code-style-Java-Import-layout-puts-them-last
213-
# it should be removed once that is fixed
214-
ij_java_imports_layout = @*,*,|,com.**,|,org.**,|,java.**,|,javax.**,|,$*
212+
ij_java_imports_layout = *,|,com.**,|,org.**,|,java.**,|,javax.**,|,$*
215213

216214
[*.json]
217215
indent_size = 2

build-tools-internal/build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,6 @@ dependencies {
282282
api "org.elasticsearch:build-conventions:$version"
283283
api "org.elasticsearch.gradle:build-tools:$version"
284284

285-
// same version as http client transitive dep
286-
api buildLibs.commons.codec
287285
api buildLibs.apache.compress
288286
api buildLibs.nebula.info
289287
api buildLibs.apache.rat
@@ -303,8 +301,8 @@ dependencies {
303301
api buildLibs.antlrst4
304302
api buildLibs.asm
305303
api buildLibs.asm.tree
306-
api buildLibs.httpclient
307-
api buildLibs.httpcore
304+
api buildLibs.httpclient5
305+
api buildLibs.httpcore5
308306

309307
compileOnly buildLibs.checkstyle
310308
compileOnly buildLibs.reflections

build-tools-internal/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pluginManagement {
55
}
66

77
includeBuild "../build-conventions"
8-
includeBuild "../build-tools"
8+
includeBuild "../build-tools"
99
}
1010

1111
plugins {

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/snyk/UploadSnykDependenciesGraph.java

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99

1010
package org.elasticsearch.gradle.internal.snyk;
1111

12-
import org.apache.http.client.methods.CloseableHttpResponse;
13-
import org.apache.http.client.methods.HttpPut;
14-
import org.apache.http.entity.FileEntity;
15-
import org.apache.http.impl.client.CloseableHttpClient;
16-
import org.apache.http.impl.client.HttpClients;
17-
import org.apache.http.util.EntityUtils;
12+
import org.apache.hc.client5.http.classic.methods.HttpPut;
13+
import org.apache.hc.client5.http.impl.classic.CloseableHttpClient;
14+
import org.apache.hc.client5.http.impl.classic.CloseableHttpResponse;
15+
import org.apache.hc.client5.http.impl.classic.HttpClients;
16+
import org.apache.hc.core5.http.ContentType;
17+
import org.apache.hc.core5.http.ParseException;
18+
import org.apache.hc.core5.http.io.entity.EntityUtils;
19+
import org.apache.hc.core5.http.io.entity.FileEntity;
1820
import org.gradle.api.DefaultTask;
1921
import org.gradle.api.GradleException;
2022
import org.gradle.api.file.RegularFileProperty;
@@ -61,16 +63,16 @@ void upload() {
6163
HttpPut putRequest = new HttpPut(endpoint);
6264
putRequest.addHeader("Authorization", "token " + token.get());
6365
putRequest.addHeader("Content-Type", "application/json");
64-
putRequest.setEntity(new FileEntity(inputFile.getAsFile().get()));
66+
putRequest.setEntity(new FileEntity(inputFile.getAsFile().get(), ContentType.APPLICATION_JSON));
6567
response = client.execute(putRequest);
66-
int statusCode = response.getStatusLine().getStatusCode();
68+
int statusCode = response.getCode();
6769
String responseString = EntityUtils.toString(response.getEntity());
6870
getLogger().info("Snyk API call response status: " + statusCode);
6971
if (statusCode != HttpURLConnection.HTTP_CREATED) {
7072
throw new GradleException("Uploading Snyk Graph failed with http code " + statusCode + ": " + responseString);
7173
}
7274
getLogger().info(responseString);
73-
} catch (IOException e) {
75+
} catch (IOException | ParseException e) {
7476
throw new GradleException("Failed to call API endpoint to submit updated dependency graph", e);
7577
}
7678
}

distribution/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ configure(subprojects.findAll { ['archives', 'packages'].contains(it.name) }) {
274274
}
275275
all {
276276
resolutionStrategy.dependencySubstitution {
277-
substitute module("org.apache.logging.log4j:log4j-core") using project(":libs:log4j") because "patched to remove JndiLookup clas"}
277+
substitute module("org.apache.logging.log4j:log4j-core") using project(":libs:log4j") because "patched to remove JndiLookup class"}
278278
}
279279
}
280280

docs/changelog/121787.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 121787
2+
summary: Added optional parameters to QSTR ES|QL function
3+
area: Search
4+
type: feature
5+
issues:
6+
- 120933

docs/changelog/123187.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 123187
2+
summary: Add bit vector support to semantic text
3+
area: Vector Search
4+
type: enhancement
5+
issues: []

docs/changelog/123763.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 123763
2+
summary: Skip semantic_text embedding generation when no content is provided.
3+
area: Relevance
4+
type: enhancement
5+
issues: []

docs/changelog/123890.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 123890
2+
summary: Do not let `ShardBulkInferenceActionFilter` unwrap / rewrap ESExceptions
3+
area: Search
4+
type: bug
5+
issues: []

docs/changelog/124363.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 124363
2+
summary: Set cause on create index request in create from action
3+
area: Data streams
4+
type: enhancement
5+
issues: []

0 commit comments

Comments
 (0)