Skip to content

Commit

Permalink
Merge branch 'main' into ObjectPagedHashMap
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticmachine authored Oct 10, 2024
2 parents f0729fc + 317b9d8 commit c4ac3f2
Show file tree
Hide file tree
Showing 55 changed files with 1,708 additions and 1,052 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void apply(Project project) {
gitInfo.disallowChanges();
gitInfo.finalizeValueOnRead();

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

public Property<GitInfo> getGitInfo() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
public class LicensingPlugin implements Plugin<Project> {
static final String ELASTIC_LICENSE_URL_PREFIX = "https://raw.githubusercontent.com/elastic/elasticsearch/";
static final String ELASTIC_LICENSE_URL_POSTFIX = "/licenses/ELASTIC-LICENSE-2.0.txt";
static final String AGPL_ELASTIC_LICENSE_URL_POSTFIX = "/licenses/AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt";

private ProviderFactory providerFactory;

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

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ class PublishPluginFuncTest extends AbstractGradleFuncTest {
<url>https://www.mongodb.com/licensing/server-side-public-license</url>
<distribution>repo</distribution>
</license>
<license>
<name>The OSI-approved Open Source license Version 3.0</name>
<url>https://raw.githubusercontent.com/elastic/elasticsearch/v1.0/licenses/AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
Expand Down Expand Up @@ -149,6 +154,11 @@ class PublishPluginFuncTest extends AbstractGradleFuncTest {
<url>https://www.mongodb.com/licensing/server-side-public-license</url>
<distribution>repo</distribution>
</license>
<license>
<name>The OSI-approved Open Source license Version 3.0</name>
<url>https://raw.githubusercontent.com/elastic/elasticsearch/v1.0/licenses/AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
Expand Down Expand Up @@ -233,6 +243,11 @@ class PublishPluginFuncTest extends AbstractGradleFuncTest {
<url>https://www.mongodb.com/licensing/server-side-public-license</url>
<distribution>repo</distribution>
</license>
<license>
<name>The OSI-approved Open Source license Version 3.0</name>
<url>https://raw.githubusercontent.com/elastic/elasticsearch/v1.0/licenses/AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
Expand Down Expand Up @@ -326,6 +341,11 @@ class PublishPluginFuncTest extends AbstractGradleFuncTest {
<url>https://www.mongodb.com/licensing/server-side-public-license</url>
<distribution>repo</distribution>
</license>
<license>
<name>The OSI-approved Open Source license Version 3.0</name>
<url>https://raw.githubusercontent.com/elastic/elasticsearch/v1.0/licenses/AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
Expand Down Expand Up @@ -399,6 +419,11 @@ class PublishPluginFuncTest extends AbstractGradleFuncTest {
<url>https://www.mongodb.com/licensing/server-side-public-license</url>
<distribution>repo</distribution>
</license>
<license>
<name>The OSI-approved Open Source license Version 3.0</name>
<url>https://raw.githubusercontent.com/elastic/elasticsearch/v2.0/licenses/AGPL-3.0+SSPL-1.0+ELASTIC-LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public enum DockerBase {
// Chainguard based wolfi image with latest jdk
// This is usually updated via renovatebot
// spotless:off
WOLFI("docker.elastic.co/wolfi/chainguard-base:latest@sha256:c16d3ad6cebf387e8dd2ad769f54320c4819fbbaa21e729fad087c7ae223b4d0",
WOLFI("docker.elastic.co/wolfi/chainguard-base:latest@sha256:90888b190da54062f67f3fef1372eb0ae7d81ea55f5a1f56d748b13e4853d984",
"-wolfi",
"apk"
),
Expand Down
2 changes: 1 addition & 1 deletion distribution/docker/src/docker/Dockerfile.ess
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ USER root

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

RUN chown root.root /opt/plugins/archive/*
RUN chown 1000:1000 /opt/plugins/archive/*
RUN chmod 0444 /opt/plugins/archive/*

FROM ${base_image}
Expand Down
5 changes: 5 additions & 0 deletions docs/changelog/114109.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 114109
summary: Update cluster stats for retrievers
area: Search
type: enhancement
issues: []
5 changes: 5 additions & 0 deletions docs/changelog/114358.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 114358
summary: "ESQL: Use less memory in listener"
area: ES|QL
type: enhancement
issues: []
5 changes: 5 additions & 0 deletions docs/changelog/114363.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 114363
summary: Give the kibana system user permission to read security entities
area: Infra/Core
type: enhancement
issues: []
5 changes: 5 additions & 0 deletions docs/changelog/114375.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 114375
summary: Handle `InternalSendException` inline for non-forking handlers
area: Distributed
type: bug
issues: []
4 changes: 4 additions & 0 deletions docs/reference/cluster/stats.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,10 @@ Queries are counted once per search request, meaning that if the same query type
(object) Search sections used in selected nodes.
For each section, name and number of times it's been used is reported.

`retrievers`::
(object) Retriever types that were used in selected nodes.
For each retriever, name and number of times it's been used is reported.

=====
`dense_vector`::
Expand Down
4 changes: 4 additions & 0 deletions docs/reference/ingest/processors.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ Executes another pipeline.
<<reroute-processor, `reroute` processor>>::
Reroutes documents to another target index or data stream.

<<terminate-processor, `terminate` processor>>::
Terminates the current ingest pipeline, causing no further processors to be run.

[discrete]
[[ingest-process-category-array-json-handling]]
=== Array/JSON handling processors
Expand Down Expand Up @@ -258,6 +261,7 @@ include::processors/set.asciidoc[]
include::processors/set-security-user.asciidoc[]
include::processors/sort.asciidoc[]
include::processors/split.asciidoc[]
include::processors/terminate.asciidoc[]
include::processors/trim.asciidoc[]
include::processors/uppercase.asciidoc[]
include::processors/url-decode.asciidoc[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import org.elasticsearch.cluster.ClusterState;
import org.elasticsearch.cluster.metadata.ComponentTemplate;
import org.elasticsearch.cluster.metadata.ComposableIndexTemplate;
import org.elasticsearch.cluster.metadata.DataStreamFactoryRetention;
import org.elasticsearch.cluster.metadata.DataStreamGlobalRetentionSettings;
import org.elasticsearch.cluster.metadata.DataStreamLifecycle;
import org.elasticsearch.cluster.metadata.MetadataCreateIndexService;
Expand Down Expand Up @@ -217,10 +216,7 @@ private MetadataIndexTemplateService getMetadataIndexTemplateService() {
xContentRegistry(),
EmptySystemIndices.INSTANCE,
indexSettingProviders,
DataStreamGlobalRetentionSettings.create(
ClusterSettings.createBuiltInClusterSettings(),
DataStreamFactoryRetention.emptyFactoryRetention()
)
DataStreamGlobalRetentionSettings.create(ClusterSettings.createBuiltInClusterSettings())
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import org.elasticsearch.cluster.ClusterName;
import org.elasticsearch.cluster.ClusterState;
import org.elasticsearch.cluster.metadata.DataStream;
import org.elasticsearch.cluster.metadata.DataStreamFactoryRetention;
import org.elasticsearch.cluster.metadata.DataStreamGlobalRetention;
import org.elasticsearch.cluster.metadata.DataStreamGlobalRetentionSettings;
import org.elasticsearch.cluster.metadata.DataStreamTestHelper;
Expand Down Expand Up @@ -47,8 +46,7 @@ public class TransportGetDataStreamsActionTests extends ESTestCase {
private final IndexNameExpressionResolver resolver = TestIndexNameExpressionResolver.newInstance();
private final SystemIndices systemIndices = new SystemIndices(List.of());
private final DataStreamGlobalRetentionSettings dataStreamGlobalRetentionSettings = DataStreamGlobalRetentionSettings.create(
ClusterSettings.createBuiltInClusterSettings(),
DataStreamFactoryRetention.emptyFactoryRetention()
ClusterSettings.createBuiltInClusterSettings()
);

public void testGetDataStream() {
Expand Down Expand Up @@ -356,8 +354,7 @@ public void testPassingGlobalRetention() {
)
.put(DataStreamGlobalRetentionSettings.DATA_STREAMS_MAX_RETENTION_SETTING.getKey(), globalRetention.maxRetention())
.build()
),
DataStreamFactoryRetention.emptyFactoryRetention()
)
);
response = TransportGetDataStreamsAction.innerOperation(
state,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
import org.elasticsearch.cluster.block.ClusterBlock;
import org.elasticsearch.cluster.block.ClusterBlocks;
import org.elasticsearch.cluster.metadata.DataStream;
import org.elasticsearch.cluster.metadata.DataStreamFactoryRetention;
import org.elasticsearch.cluster.metadata.DataStreamGlobalRetentionSettings;
import org.elasticsearch.cluster.metadata.DataStreamLifecycle;
import org.elasticsearch.cluster.metadata.DataStreamLifecycle.Downsampling;
Expand Down Expand Up @@ -142,8 +141,7 @@ public class DataStreamLifecycleServiceTests extends ESTestCase {
private DoExecuteDelegate clientDelegate;
private ClusterService clusterService;
private final DataStreamGlobalRetentionSettings globalRetentionSettings = DataStreamGlobalRetentionSettings.create(
ClusterSettings.createBuiltInClusterSettings(),
DataStreamFactoryRetention.emptyFactoryRetention()
ClusterSettings.createBuiltInClusterSettings()
);

@Before
Expand Down
25 changes: 13 additions & 12 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -351,27 +351,28 @@ tests:
- class: org.elasticsearch.xpack.inference.services.cohere.CohereServiceTests
method: testInfer_StreamRequest
issue: https://github.com/elastic/elasticsearch/issues/114385
- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
method: test {p0=synonyms/60_synonym_rule_get/Synonym set not found}
issue: https://github.com/elastic/elasticsearch/issues/114432
- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
method: test {p0=synonyms/60_synonym_rule_get/Get a synonym rule}
issue: https://github.com/elastic/elasticsearch/issues/114443
- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
method: test {p0=synonyms/60_synonym_rule_get/Synonym rule not found}
issue: https://github.com/elastic/elasticsearch/issues/114444
- class: org.elasticsearch.xpack.inference.InferenceRestIT
method: test {p0=inference/30_semantic_text_inference/Calculates embeddings using the default ELSER 2 endpoint}
issue: https://github.com/elastic/elasticsearch/issues/114412
- class: org.elasticsearch.xpack.inference.InferenceRestIT
method: test {p0=inference/40_semantic_text_query/Query a field that uses the default ELSER 2 endpoint}
issue: https://github.com/elastic/elasticsearch/issues/114376
- class: org.elasticsearch.search.retriever.StandardRetrieverBuilderParsingTests
method: testRewrite
issue: https://github.com/elastic/elasticsearch/issues/114466
- class: org.elasticsearch.search.retriever.RankDocsRetrieverBuilderTests
method: testRewrite
issue: https://github.com/elastic/elasticsearch/issues/114467
- class: org.elasticsearch.xpack.logsdb.LogsdbTestSuiteIT
issue: https://github.com/elastic/elasticsearch/issues/114471
- class: org.elasticsearch.packaging.test.DockerTests
method: test022InstallPluginsFromLocalArchive
issue: https://github.com/elastic/elasticsearch/issues/111063
- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
method: test {yaml=reference/esql/esql-across-clusters/line_196}
issue: https://github.com/elastic/elasticsearch/issues/114488
- class: org.elasticsearch.gradle.internal.PublishPluginFuncTest
issue: https://github.com/elastic/elasticsearch/issues/114492
- class: org.elasticsearch.xpack.inference.DefaultElserIT
method: testInferCreatesDefaultElser
issue: https://github.com/elastic/elasticsearch/issues/114503

# Examples:
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ setup:
id: "test-id-3"
- do:
cluster.health:
index: .synonyms-2
index: .synonyms
timeout: 1m
wait_for_status: green

---
Expand Down
Loading

0 comments on commit c4ac3f2

Please sign in to comment.