Skip to content

Commit d280236

Browse files
authored
Merge branch 'main' into pushdown-starts-with
2 parents f51681b + 6cb5f83 commit d280236

File tree

1,273 files changed

+17158
-34722
lines changed

Some content is hidden

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

1,273 files changed

+17158
-34722
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

.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

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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
}

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def generateUpgradeCompatibilityFile = tasks.register("generateUpgradeCompatibil
241241
}
242242

243243
def upgradeCompatibilityZip = tasks.register("upgradeCompatibilityZip", Zip) {
244-
archiveFile.set(project.layout.buildDirectory.file("rolling-upgrade-compatible-${VersionProperties.elasticsearch}.zip"))
244+
archiveFile.set(project.layout.buildDirectory.file("distributions/rolling-upgrade-compatible-${VersionProperties.elasticsearch}.zip"))
245245
from(generateUpgradeCompatibilityFile)
246246
}
247247

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

0 commit comments

Comments
 (0)