Skip to content

Commit 027c281

Browse files
committed
Merge branch 'main' into test-fix/replace-default-backing-index-name-ilm
2 parents 497f1e3 + 15b8407 commit 027c281

File tree

212 files changed

+3009
-1386
lines changed

Some content is hidden

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

212 files changed

+3009
-1386
lines changed

.buildkite/pipelines/periodic.template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ steps:
218218
ES_VERSION:
219219
- "9.0.0"
220220
ES_COMMIT:
221-
- "b2cc9d9b8f00ee621f93ddca07ea9c671aab1578" # update to match last commit before lucene bump
221+
- "10352e57d85505984582616e1e38530d3ec6ca59" # update to match last commit before lucene bump maintained from combat-lucene-10-0-0 branch
222222
agents:
223223
provider: gcp
224224
image: family/elasticsearch-ubuntu-2004

.buildkite/pipelines/periodic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ steps:
637637
ES_VERSION:
638638
- "9.0.0"
639639
ES_COMMIT:
640-
- "b2cc9d9b8f00ee621f93ddca07ea9c671aab1578" # update to match last commit before lucene bump
640+
- "10352e57d85505984582616e1e38530d3ec6ca59" # update to match last commit before lucene bump maintained from combat-lucene-10-0-0 branch
641641
agents:
642642
provider: gcp
643643
image: family/elasticsearch-ubuntu-2004

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: []

0 commit comments

Comments
 (0)