Skip to content

Commit 26e4043

Browse files
Merge branch 'main' into threadpool-merge-scheduler
2 parents 9b03950 + 027c605 commit 26e4043

File tree

599 files changed

+14707
-6914
lines changed

Some content is hidden

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

599 files changed

+14707
-6914
lines changed

.buildkite/scripts/dra-workflow.sh

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ WORKFLOW="${DRA_WORKFLOW:-snapshot}"
66
BRANCH="${BUILDKITE_BRANCH:-}"
77

88
# Don't publish main branch to staging
9-
if [[ ("$BRANCH" == "main" || "$BRANCH" == *.x) && "$WORKFLOW" == "staging" ]]; then
9+
if [[ "$BRANCH" == *.x && "$WORKFLOW" == "staging" ]]; then
1010
exit 0
1111
fi
1212

@@ -22,13 +22,19 @@ if [[ "$BRANCH" == "main" ]]; then
2222
fi
2323

2424
ES_VERSION=$(grep elasticsearch build-tools-internal/version.properties | sed "s/elasticsearch *= *//g")
25+
BASE_VERSION="$ES_VERSION"
2526
echo "ES_VERSION=$ES_VERSION"
2627

2728
VERSION_SUFFIX=""
2829
if [[ "$WORKFLOW" == "snapshot" ]]; then
2930
VERSION_SUFFIX="-SNAPSHOT"
3031
fi
3132

33+
if [[ -n "${VERSION_QUALIFIER:-}" ]]; then
34+
ES_VERSION="${ES_VERSION}-${VERSION_QUALIFIER}"
35+
echo "Version qualifier specified. ES_VERSION=${ES_VERSION}."
36+
fi
37+
3238
BEATS_BUILD_ID="$(./.ci/scripts/resolve-dra-manifest.sh beats "$RM_BRANCH" "$ES_VERSION" "$WORKFLOW")"
3339
echo "BEATS_BUILD_ID=$BEATS_BUILD_ID"
3440

@@ -37,6 +43,7 @@ echo "ML_CPP_BUILD_ID=$ML_CPP_BUILD_ID"
3743

3844
LICENSE_KEY_ARG=""
3945
BUILD_SNAPSHOT_ARG=""
46+
VERSION_QUALIFIER_ARG=""
4047

4148
if [[ "$WORKFLOW" == "staging" ]]; then
4249
LICENSE_KEY=$(mktemp -d)/license.key
@@ -47,6 +54,10 @@ if [[ "$WORKFLOW" == "staging" ]]; then
4754
BUILD_SNAPSHOT_ARG="-Dbuild.snapshot=false"
4855
fi
4956

57+
if [[ -n "${VERSION_QUALIFIER:-}" ]]; then
58+
VERSION_QUALIFIER_ARG="-Dbuild.version_qualifier=$VERSION_QUALIFIER"
59+
fi
60+
5061
echo --- Building release artifacts
5162

5263
.ci/scripts/run-gradle.sh -Ddra.artifacts=true \
@@ -56,12 +67,17 @@ echo --- Building release artifacts
5667
-Dcsv="$WORKSPACE/build/distributions/dependencies-${ES_VERSION}${VERSION_SUFFIX}.csv" \
5768
$LICENSE_KEY_ARG \
5869
$BUILD_SNAPSHOT_ARG \
70+
$VERSION_QUALIFIER_ARG \
5971
buildReleaseArtifacts \
6072
exportCompressedDockerImages \
6173
:distribution:generateDependenciesReport
6274

6375
PATH="$PATH:${JAVA_HOME}/bin" # Required by the following script
76+
if [[ -z "${VERSION_QUALIFIER:-}" ]]; then
6477
x-pack/plugin/sql/connectors/tableau/package.sh asm qualifier="$VERSION_SUFFIX"
78+
else
79+
x-pack/plugin/sql/connectors/tableau/package.sh asm qualifier="-$VERSION_QUALIFIER"
80+
fi
6581

6682
# we regenerate this file as part of the release manager invocation
6783
rm "build/distributions/elasticsearch-jdbc-${ES_VERSION}${VERSION_SUFFIX}.taco.sha512"
@@ -88,7 +104,8 @@ docker run --rm \
88104
--branch "$RM_BRANCH" \
89105
--commit "$BUILDKITE_COMMIT" \
90106
--workflow "$WORKFLOW" \
91-
--version "$ES_VERSION" \
107+
--qualifier "${VERSION_QUALIFIER:-}" \
108+
--version "$BASE_VERSION" \
92109
--artifact-set main \
93110
--dependency "beats:https://artifacts-${WORKFLOW}.elastic.co/beats/${BEATS_BUILD_ID}/manifest-${ES_VERSION}${VERSION_SUFFIX}.json" \
94111
--dependency "ml-cpp:https://artifacts-${WORKFLOW}.elastic.co/ml-cpp/${ML_CPP_BUILD_ID}/manifest-${ES_VERSION}${VERSION_SUFFIX}.json"

.buildkite/scripts/dra-workflow.trigger.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ source .buildkite/scripts/branches.sh
88

99
for BRANCH in "${BRANCHES[@]}"; do
1010
if [[ "$BRANCH" == "main" ]]; then
11-
continue
11+
export VERSION_QUALIFIER="alpha1"
1212
fi
1313

1414
INTAKE_PIPELINE_SLUG="elasticsearch-intake"
@@ -24,5 +24,6 @@ for BRANCH in "${BRANCHES[@]}"; do
2424
commit: "$LAST_GOOD_COMMIT"
2525
env:
2626
DRA_WORKFLOW: staging
27+
VERSION_QUALIFIER: ${VERSION_QUALIFIER:-}
2728
EOF
2829
done

benchmarks/src/main/java/org/elasticsearch/benchmark/bytes/BytesArrayReadLongBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class BytesArrayReadLongBenchmark {
4747
@Setup
4848
public void initResults() throws IOException {
4949
final BytesStreamOutput tmp = new BytesStreamOutput();
50-
final long bytes = new ByteSizeValue(dataMb, ByteSizeUnit.MB).getBytes();
50+
final long bytes = ByteSizeValue.of(dataMb, ByteSizeUnit.MB).getBytes();
5151
for (int i = 0; i < bytes / 8; i++) {
5252
tmp.writeLong(i);
5353
}

benchmarks/src/main/java/org/elasticsearch/benchmark/bytes/PagedBytesReferenceReadLongBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class PagedBytesReferenceReadLongBenchmark {
4747
@Setup
4848
public void initResults() throws IOException {
4949
final BytesStreamOutput tmp = new BytesStreamOutput();
50-
final long bytes = new ByteSizeValue(dataMb, ByteSizeUnit.MB).getBytes();
50+
final long bytes = ByteSizeValue.of(dataMb, ByteSizeUnit.MB).getBytes();
5151
for (int i = 0; i < bytes / 8; i++) {
5252
tmp.writeLong(i);
5353
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void apply(Project project) {
5353
}
5454

5555
// List of root tasks, by name, whose compileJava task should not use the module path. These are test related sources.
56-
static final Set<String> EXCLUDES = Set.of(":test:framework", ":x-pack:plugin:eql:qa:common");
56+
static final Set<String> EXCLUDES = Set.of(":test:framework", ":x-pack:plugin:eql:qa:common", ":x-pack:plugin:esql:compute:test");
5757

5858
void configureCompileModulePath(Project project) {
5959
// first disable Gradle's builtin module path inference

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/testfixtures/TestFixturesPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public void apply(Project project) {
122122
composeExtension.getRemoveContainers().set(true);
123123
composeExtension.getCaptureContainersOutput()
124124
.set(EnumSet.of(LogLevel.INFO, LogLevel.DEBUG).contains(project.getGradle().getStartParameter().getLogLevel()));
125-
composeExtension.getUseDockerComposeV2().set(true);
125+
composeExtension.getUseDockerComposeV2().set(false);
126126
composeExtension.getExecutable().set(this.providerFactory.provider(() -> {
127127
String composePath = dockerSupport.get().getDockerAvailability().dockerComposePath();
128128
LOGGER.debug("Docker Compose path: {}", composePath);

distribution/tools/server-cli/src/main/java/org/elasticsearch/server/cli/SystemJvmOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ private static Stream<String> maybeAttachEntitlementAgent(boolean useEntitlement
171171
throw new IllegalStateException("Failed to list entitlement jars in: " + dir, e);
172172
}
173173
// We instrument classes in these modules to call the bridge. Because the bridge gets patched
174-
// into java.base, we must export the bridge from java.base to these modules.
175-
String modulesContainingEntitlementInstrumentation = "java.logging";
174+
// into java.base, we must export the bridge from java.base to these modules, as a comma-separated list
175+
String modulesContainingEntitlementInstrumentation = "java.logging,java.net.http,java.naming";
176176
return Stream.of(
177177
"-Des.entitlements.enabled=true",
178178
"-XX:+EnableDynamicAgentLoading",

docs/changelog/118619.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 118619
2+
summary: Optional named arguments for function in map
3+
area: EQL
4+
type: enhancement
5+
issues: []

docs/changelog/119001.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 119001
2+
summary: Add support for specifying reindexing script for system index migration
3+
area: Infra/Core
4+
type: enhancement
5+
issues: []

docs/changelog/119536.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 119536
2+
summary: Fix ROUND() with unsigned longs throwing in some edge cases
3+
area: ES|QL
4+
type: bug
5+
issues: []

0 commit comments

Comments
 (0)