Skip to content

Commit b02af0f

Browse files
committed
Merge branch 'lucene_snapshot' of github.com:elastic/elasticsearch into lucene_snapshot
2 parents c12a689 + e5f7124 commit b02af0f

File tree

776 files changed

+19324
-6786
lines changed

Some content is hidden

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

776 files changed

+19324
-6786
lines changed

build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/GitInfoPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void apply(Project project) {
4444
gitInfo.disallowChanges();
4545
gitInfo.finalizeValueOnRead();
4646

47-
revision = gitInfo.map(info -> info.getRevision() == null ? info.getRevision() : "master");
47+
revision = gitInfo.map(info -> info.getRevision() == null ? info.getRevision() : "main");
4848
}
4949

5050
public Property<GitInfo> getGitInfo() {

build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/LicensingPlugin.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
public class LicensingPlugin implements Plugin<Project> {
2222
static final String ELASTIC_LICENSE_URL_PREFIX = "https://raw.githubusercontent.com/elastic/elasticsearch/";
2323
static final String ELASTIC_LICENSE_URL_POSTFIX = "/licenses/ELASTIC-LICENSE-2.0.txt";
24+
static final String AGPL_ELASTIC_LICENSE_URL_POSTFIX = "/licenses/AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt";
2425

2526
private ProviderFactory providerFactory;
2627

@@ -36,15 +37,18 @@ public void apply(Project project) {
3637
isSnapshotVersion(project) ? revision.get() : "v" + project.getVersion()
3738
);
3839

39-
Provider<String> projectLicenseURL = licenseCommitProvider.map(licenseCommit -> ELASTIC_LICENSE_URL_PREFIX +
40+
Provider<String> elasticLicenseURL = licenseCommitProvider.map(licenseCommit -> ELASTIC_LICENSE_URL_PREFIX +
4041
licenseCommit + ELASTIC_LICENSE_URL_POSTFIX);
42+
Provider<String> agplLicenseURL = licenseCommitProvider.map(licenseCommit -> ELASTIC_LICENSE_URL_PREFIX +
43+
licenseCommit + AGPL_ELASTIC_LICENSE_URL_POSTFIX);
4144
// But stick the Elastic license url in project.ext so we can get it if we need to switch to it
42-
project.getExtensions().getExtraProperties().set("elasticLicenseUrl", projectLicenseURL);
45+
project.getExtensions().getExtraProperties().set("elasticLicenseUrl", elasticLicenseURL);
4346

4447
MapProperty<String, String> licensesProperty = project.getObjects().mapProperty(String.class, String.class).convention(
4548
providerFactory.provider(() -> Map.of(
4649
"Server Side Public License, v 1", "https://www.mongodb.com/licensing/server-side-public-license",
47-
"Elastic License 2.0", projectLicenseURL.get())
50+
"Elastic License 2.0", elasticLicenseURL.get(),
51+
"GNU Affero General Public License Version 3", agplLicenseURL.get())
4852
)
4953
);
5054

build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/PublishPluginFuncTest.groovy

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ class PublishPluginFuncTest extends AbstractGradleFuncTest {
6969
<url>https://raw.githubusercontent.com/elastic/elasticsearch/v1.0/licenses/ELASTIC-LICENSE-2.0.txt</url>
7070
<distribution>repo</distribution>
7171
</license>
72+
<license>
73+
<name>GNU Affero General Public License Version 3</name>
74+
<url>https://raw.githubusercontent.com/elastic/elasticsearch/v1.0/licenses/AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt</url>
75+
<distribution>repo</distribution>
76+
</license>
7277
<license>
7378
<name>Server Side Public License, v 1</name>
7479
<url>https://www.mongodb.com/licensing/server-side-public-license</url>
@@ -144,6 +149,11 @@ class PublishPluginFuncTest extends AbstractGradleFuncTest {
144149
<url>https://raw.githubusercontent.com/elastic/elasticsearch/v1.0/licenses/ELASTIC-LICENSE-2.0.txt</url>
145150
<distribution>repo</distribution>
146151
</license>
152+
<license>
153+
<name>GNU Affero General Public License Version 3</name>
154+
<url>https://raw.githubusercontent.com/elastic/elasticsearch/v1.0/licenses/AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt</url>
155+
<distribution>repo</distribution>
156+
</license>
147157
<license>
148158
<name>Server Side Public License, v 1</name>
149159
<url>https://www.mongodb.com/licensing/server-side-public-license</url>
@@ -228,6 +238,11 @@ class PublishPluginFuncTest extends AbstractGradleFuncTest {
228238
<url>https://raw.githubusercontent.com/elastic/elasticsearch/v1.0/licenses/ELASTIC-LICENSE-2.0.txt</url>
229239
<distribution>repo</distribution>
230240
</license>
241+
<license>
242+
<name>GNU Affero General Public License Version 3</name>
243+
<url>https://raw.githubusercontent.com/elastic/elasticsearch/v1.0/licenses/AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt</url>
244+
<distribution>repo</distribution>
245+
</license>
231246
<license>
232247
<name>Server Side Public License, v 1</name>
233248
<url>https://www.mongodb.com/licensing/server-side-public-license</url>
@@ -321,6 +336,11 @@ class PublishPluginFuncTest extends AbstractGradleFuncTest {
321336
<url>https://raw.githubusercontent.com/elastic/elasticsearch/v1.0/licenses/ELASTIC-LICENSE-2.0.txt</url>
322337
<distribution>repo</distribution>
323338
</license>
339+
<license>
340+
<name>GNU Affero General Public License Version 3</name>
341+
<url>https://raw.githubusercontent.com/elastic/elasticsearch/v1.0/licenses/AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt</url>
342+
<distribution>repo</distribution>
343+
</license>
324344
<license>
325345
<name>Server Side Public License, v 1</name>
326346
<url>https://www.mongodb.com/licensing/server-side-public-license</url>
@@ -394,6 +414,11 @@ class PublishPluginFuncTest extends AbstractGradleFuncTest {
394414
<url>https://raw.githubusercontent.com/elastic/elasticsearch/v2.0/licenses/ELASTIC-LICENSE-2.0.txt</url>
395415
<distribution>repo</distribution>
396416
</license>
417+
<license>
418+
<name>GNU Affero General Public License Version 3</name>
419+
<url>https://raw.githubusercontent.com/elastic/elasticsearch/v2.0/licenses/AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt</url>
420+
<distribution>repo</distribution>
421+
</license>
397422
<license>
398423
<name>Server Side Public License, v 1</name>
399424
<url>https://www.mongodb.com/licensing/server-side-public-license</url>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public enum DockerBase {
3131
// Chainguard based wolfi image with latest jdk
3232
// This is usually updated via renovatebot
3333
// spotless:off
34-
WOLFI("docker.elastic.co/wolfi/chainguard-base:latest@sha256:c16d3ad6cebf387e8dd2ad769f54320c4819fbbaa21e729fad087c7ae223b4d0",
34+
WOLFI("docker.elastic.co/wolfi/chainguard-base:latest@sha256:90888b190da54062f67f3fef1372eb0ae7d81ea55f5a1f56d748b13e4853d984",
3535
"-wolfi",
3636
"apk"
3737
),

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,13 @@ public void execute(BuildFinishedFlowAction.Parameters parameters) throws FileNo
163163
// So, if you change this such that the artifact will have a slash/directory in it, you'll need to update the logic
164164
// below as well
165165
pb.directory(uploadFileDir);
166-
pb.start().waitFor();
166+
try {
167+
// we are very generious here, as the upload can take
168+
// a long time depending on its size
169+
pb.start().waitFor(30, java.util.concurrent.TimeUnit.MINUTES);
170+
} catch (InterruptedException e) {
171+
System.out.println("Failed to upload buildkite artifact " + e.getMessage());
172+
}
167173

168174
System.out.println("Generating buildscan link for artifact...");
169175

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ public void execute(Task t) {
185185
});
186186

187187
if (OS.current().equals(OS.WINDOWS) && System.getProperty("tests.timeoutSuite") == null) {
188-
// override the suite timeout to 30 mins for windows, because it has the most inefficient filesystem known to man
189-
test.systemProperty("tests.timeoutSuite", "2400000!");
188+
// override the suite timeout to 60 mins for windows, because it has the most inefficient filesystem known to man
189+
test.systemProperty("tests.timeoutSuite", "3600000!");
190190
}
191191

192192
/*

build-tools-internal/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
elasticsearch = 9.0.0
2-
lucene = 10.0.0-snapshot-a4c0f741ccc
2+
lucene = 10.0.0-snapshot-eadc07cc6a1
33

44
bundled_jdk_vendor = openjdk
55
bundled_jdk = 22.0.1+8@c7ec1332f7bb44aeba2eb341ae18aca4

distribution/docker/src/docker/Dockerfile.ess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ USER root
2525

2626
COPY plugins/*.zip /opt/plugins/archive/
2727

28-
RUN chown root.root /opt/plugins/archive/*
28+
RUN chown 1000:1000 /opt/plugins/archive/*
2929
RUN chmod 0444 /opt/plugins/archive/*
3030

3131
FROM ${base_image}

distribution/src/config/jvm.options

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@
6262
23:-XX:CompileCommand=dontinline,java/lang/invoke/MethodHandle.setAsTypeCache
6363
23:-XX:CompileCommand=dontinline,java/lang/invoke/MethodHandle.asTypeUncached
6464

65+
# Lucene 10: apply MADV_NORMAL advice to enable more aggressive readahead
66+
-Dorg.apache.lucene.store.defaultReadAdvice=normal
67+
6568
## heap dumps
6669

6770
# generate a heap dump when an allocation from the Java heap fails; heap dumps

distribution/tools/entitlement-agent/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Entitlement Agent
22

3-
This is a java agent that instruments sensitive class library methods with calls into the `entitlement-runtime` module to check for permissions granted under the _entitlements_ system.
3+
This is a java agent that instruments sensitive class library methods with calls into the `entitlement-bridge` module to check for permissions granted under the _entitlements_ system.
44

55
The entitlements system provides an alternative to the legacy `SecurityManager` system, which is deprecated for removal.
66
With this agent, the Elasticsearch server can retain some control over which class library methods can be invoked by which callers.

0 commit comments

Comments
 (0)