Skip to content

Commit 28f321c

Browse files
committed
Merge branch 'main' into entitlements/security_policy
2 parents aaaefb4 + 93dea0f commit 28f321c

File tree

477 files changed

+5128
-2651
lines changed

Some content is hidden

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

477 files changed

+5128
-2651
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/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ To re-run CI checks, an Elastic employee can select the `Re-run this job` option
4949

5050
> [!TIP]
5151
As of 9.0.0, we are currently only publishing from the `main` branch.
52-
**This means that backporting is currently not necessary for 9.0+ Elasticsearch docs.**
52+
We will continue to backport changes as usual, in case we need to revisit this approach in the future.
5353

54-
However, if you need to update the `8.x` docs, you'll have to use the old `asciidoc` system. Refer to the [`8.x` README](https://github.com/elastic/elasticsearch/blob/8.x/docs/README.asciidoc) for more information.
54+
If you need to update the `8.x` docs, you'll have to use the old `asciidoc` system. Refer to the [`8.x` README](https://github.com/elastic/elasticsearch/blob/8.x/docs/README.asciidoc) for more information.
5555

5656
> [!NOTE]
5757
> If you need to make changes to 9.x docs and 8.x docs, you'll need to use two different workflows:
5858
59-
- **For `9.x` docs**, create a PR using the new Markdown system against the `main` branch.
59+
- **For `9.x` docs**, create a PR using the new Markdown system against the `main` branch and backport as necessary.
6060
- **For `8.x` docs**, create a PR using the old AsciiDoc system against the `8.x` branch and backport the changes to any other `8.x` branches needed.
6161

6262
## Test code snippets

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/122606.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 122606
2+
summary: Avoid serializing empty `_source` fields in mappings
3+
area: Mapping
4+
type: bug
5+
issues: []

docs/changelog/123543.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 123543
2+
summary: Enhance memory accounting for document expansion and introduce max document
3+
size limit
4+
area: CRUD
5+
type: enhancement
6+
issues: []

docs/changelog/123589.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 123589
2+
summary: Revive some more of inlinestats functionality
3+
area: ES|QL
4+
type: bug
5+
issues: []

0 commit comments

Comments
 (0)