Skip to content

Commit

Permalink
Merge branch 'feature/semantic-text' into carlosdelest/semantic-text-…
Browse files Browse the repository at this point in the history
…inference

# Conflicts:
#	server/src/main/java/org/elasticsearch/TransportVersions.java
  • Loading branch information
carlosdelest committed Jan 12, 2024
2 parents 33b325b + 9332ef9 commit 8aa0562
Show file tree
Hide file tree
Showing 588 changed files with 8,995 additions and 4,979 deletions.
2 changes: 1 addition & 1 deletion .buildkite/pipelines/intake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ steps:
timeout_in_minutes: 300
matrix:
setup:
BWC_VERSION: ["7.17.17", "8.11.4", "8.12.0", "8.13.0"]
BWC_VERSION: ["7.17.17", "8.11.5", "8.12.0", "8.13.0"]
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
Expand Down
16 changes: 16 additions & 0 deletions .buildkite/pipelines/periodic-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1793,6 +1793,22 @@ steps:
env:
BWC_VERSION: 8.11.4

- label: "{{matrix.image}} / 8.11.5 / packaging-tests-upgrade"
command: ./.ci/scripts/packaging-test.sh -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v8.11.5
timeout_in_minutes: 300
matrix:
setup:
image:
- rocky-8
- ubuntu-2004
agents:
provider: gcp
image: family/elasticsearch-{{matrix.image}}
machineType: custom-16-32768
buildDirectory: /dev/shm/bk
env:
BWC_VERSION: 8.11.5

- label: "{{matrix.image}} / 8.12.0 / packaging-tests-upgrade"
command: ./.ci/scripts/packaging-test.sh -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v8.12.0
timeout_in_minutes: 300
Expand Down
1 change: 1 addition & 0 deletions .buildkite/pipelines/periodic-platform-support.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ steps:
setup:
image:
- amazonlinux-2023
- amazonlinux-2
agents:
provider: aws
imagePrefix: elasticsearch-{{matrix.image}}
Expand Down
4 changes: 2 additions & 2 deletions .buildkite/pipelines/periodic.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ steps:
- group: bwc
steps: $BWC_STEPS
- label: concurrent-search-tests
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dtests.jvm.argline=-Des.concurrent_search=true -Des.concurrent_search=true check
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dtests.jvm.argline=-Des.concurrent_search=true -Des.concurrent_search=true functionalTests
timeout_in_minutes: 420
agents:
provider: gcp
Expand Down Expand Up @@ -97,7 +97,7 @@ steps:
diskSizeGb: 350
machineType: custom-32-98304
- label: single-processor-node-tests
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dtests.configure_test_clusters_with_one_processor=true check
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dtests.configure_test_clusters_with_one_processor=true functionalTests
timeout_in_minutes: 420
agents:
provider: gcp
Expand Down
14 changes: 12 additions & 2 deletions .buildkite/pipelines/periodic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,16 @@ steps:
buildDirectory: /dev/shm/bk
env:
BWC_VERSION: 8.11.4
- label: 8.11.5 / bwc
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.11.5#bwcTest
timeout_in_minutes: 300
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
machineType: n1-standard-32
buildDirectory: /dev/shm/bk
env:
BWC_VERSION: 8.11.5
- label: 8.12.0 / bwc
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.12.0#bwcTest
timeout_in_minutes: 300
Expand All @@ -1123,7 +1133,7 @@ steps:
env:
BWC_VERSION: 8.13.0
- label: concurrent-search-tests
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dtests.jvm.argline=-Des.concurrent_search=true -Des.concurrent_search=true check
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dtests.jvm.argline=-Des.concurrent_search=true -Des.concurrent_search=true functionalTests
timeout_in_minutes: 420
agents:
provider: gcp
Expand Down Expand Up @@ -1218,7 +1228,7 @@ steps:
diskSizeGb: 350
machineType: custom-32-98304
- label: single-processor-node-tests
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dtests.configure_test_clusters_with_one_processor=true check
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dtests.configure_test_clusters_with_one_processor=true functionalTests
timeout_in_minutes: 420
agents:
provider: gcp
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/scripts/encryption-at-rest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ touch .output.log
rm -Rf "$WORKSPACE"
ln -s "$PWD" "$WORKSPACE"

.ci/scripts/run-gradle.sh -Dbwc.checkout.align=true check
.ci/scripts/run-gradle.sh -Dbwc.checkout.align=true functionalTests
2 changes: 1 addition & 1 deletion .buildkite/scripts/release-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ curl --fail -o "${ML_IVY_REPO}/maven/org/elasticsearch/ml/ml-cpp/${ES_VERSION}/m
curl --fail -o "${ML_IVY_REPO}/maven/org/elasticsearch/ml/ml-cpp/${ES_VERSION}/ml-cpp-${ES_VERSION}.zip" https://artifacts-snapshot.elastic.co/ml-cpp/${ES_VERSION}-SNAPSHOT/downloads/ml-cpp/ml-cpp-${ES_VERSION}-SNAPSHOT.zip

.ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dbuild.snapshot=false -Dbuild.ml_cpp.repo=file://${ML_IVY_REPO} \
-Dtests.jvm.argline=-Dbuild.snapshot=false -Dlicense.key=${WORKSPACE}/x-pack/license-tools/src/test/resources/public.key -Dbuild.id=deadbeef build
-Dtests.jvm.argline=-Dbuild.snapshot=false -Dlicense.key=${WORKSPACE}/x-pack/license-tools/src/test/resources/public.key -Dbuild.id=deadbeef assemble functionalTests
1 change: 1 addition & 0 deletions .ci/bwcVersions
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,6 @@ BWC_VERSION:
- "8.11.2"
- "8.11.3"
- "8.11.4"
- "8.11.5"
- "8.12.0"
- "8.13.0"
2 changes: 1 addition & 1 deletion .ci/snapshotBwcVersions
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BWC_VERSION:
- "7.17.17"
- "8.11.4"
- "8.11.5"
- "8.12.0"
- "8.13.0"
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,6 @@ configure(allprojects) {
}
}
}

project.plugins.withType(RestTestBasePlugin) {
tasks.withType(StandaloneRestIntegTestTask).configureEach {
if (BuildParams.getIsRuntimeJavaHomeSet() == false) {
nonInputProperties.systemProperty("tests.runtime.java", "${-> launcher.map { it.metadata.installationPath.asFile.path }.get()}")
}
}
}

project.plugins.withType(ThirdPartyAuditPrecommitPlugin) {
project.getTasks().withType(ThirdPartyAuditTask.class).configureEach {
if (BuildParams.getIsRuntimeJavaHomeSet() == false) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
public class RestTestBasePlugin implements Plugin<Project> {

private static final String TESTS_MAX_PARALLEL_FORKS_SYSPROP = "tests.max.parallel.forks";
private static final String TESTS_RUNTIME_JAVA_SYSPROP = "tests.runtime.java";
private static final String DEFAULT_DISTRIBUTION_SYSPROP = "tests.default.distribution";
private static final String INTEG_TEST_DISTRIBUTION_SYSPROP = "tests.integ-test.distribution";
private static final String BWC_SNAPSHOT_DISTRIBUTION_SYSPROP_PREFIX = "tests.snapshot.distribution.";
Expand Down Expand Up @@ -189,7 +188,6 @@ public void apply(Project project) {
// Wire up integ-test distribution by default for all test tasks
FileCollection extracted = integTestDistro.getExtracted();
nonInputSystemProperties.systemProperty(INTEG_TEST_DISTRIBUTION_SYSPROP, () -> extracted.getSingleFile().getPath());
nonInputSystemProperties.systemProperty(TESTS_RUNTIME_JAVA_SYSPROP, BuildParams.getRuntimeJavaHome());

// Add `usesDefaultDistribution()` extension method to test tasks to indicate they require the default distro
task.getExtensions().getExtraProperties().set("usesDefaultDistribution", new Closure<Void>(task) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public void beforeStart() {
try {
mockServer.start();
node.setting("telemetry.metrics.enabled", "true");
node.setting("tracing.apm.agent.enabled", "true");
node.setting("tracing.apm.enabled", "true");
node.setting("tracing.apm.agent.transaction_sample_rate", "0.10");
node.setting("tracing.apm.agent.metrics_interval", "10s");
node.setting("tracing.apm.agent.server_url", "http://127.0.0.1:" + mockServer.getPort());
Expand All @@ -213,8 +213,8 @@ public void beforeStart() {
// if metrics were not enabled explicitly for gradlew run we should disable them
else if (node.getSettingKeys().contains("telemetry.metrics.enabled") == false) { // metrics
node.setting("telemetry.metrics.enabled", "false");
} else if (node.getSettingKeys().contains("tracing.apm.agent.enabled") == false) { // tracing
node.setting("tracing.apm.agent.enable", "false");
} else if (node.getSettingKeys().contains("tracing.apm.enabled") == false) { // tracing
node.setting("tracing.apm.enable", "false");
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver;
import org.elasticsearch.cluster.node.DiscoveryNodes;
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
import org.elasticsearch.common.settings.ClusterSettings;
import org.elasticsearch.common.settings.IndexScopedSettings;
import org.elasticsearch.common.settings.Settings;
Expand Down Expand Up @@ -47,6 +48,7 @@ public class NoopPlugin extends Plugin implements ActionPlugin {
@Override
public List<RestHandler> getRestHandlers(
Settings settings,
NamedWriteableRegistry namedWriteableRegistry,
RestController restController,
ClusterSettings clusterSettings,
IndexScopedSettings indexScopedSettings,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ class APMJvmOptions {
"application_packages", "org.elasticsearch,org.apache.lucene",
"metrics_interval", "120s",
"breakdown_metrics", "false",
"central_config", "false"
"central_config", "false",
"transaction_sample_rate", "0.2"
);
// end::noformat

Expand Down
6 changes: 6 additions & 0 deletions docs/changelog/100813.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 100813
summary: Make `ParentTaskAssigningClient.getRemoteClusterClient` method also return
`ParentTaskAssigningClient`
area: Infra/Transport API
type: enhancement
issues: []
5 changes: 0 additions & 5 deletions docs/changelog/102843.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions docs/changelog/102848.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/changelog/103003.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/changelog/103151.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/changelog/103474.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/changelog/103611.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions docs/changelog/103758.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions docs/changelog/103865.yaml

This file was deleted.

5 changes: 5 additions & 0 deletions docs/changelog/103949.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 103949
summary: "ESQL: Introduce mode setting for ENRICH"
area: ES|QL
type: feature
issues: []
5 changes: 5 additions & 0 deletions docs/changelog/103959.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 103959
summary: Add `ApiKey` expiration time to audit log
area: Security
type: enhancement
issues: []
5 changes: 5 additions & 0 deletions docs/changelog/104026.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 104026
summary: Include user's privileges actions in IdP plugin `_has_privileges` request
area: IdentityProvider
type: enhancement
issues: []
5 changes: 5 additions & 0 deletions docs/changelog/104092.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 104092
summary: Ingest geoip processor cache 'no results' from the database
area: Ingest Node
type: enhancement
issues: []
5 changes: 5 additions & 0 deletions docs/changelog/104122.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 104122
summary: Consider currently refreshing data in the memory usage of refresh
area: Engine
type: bug
issues: []
5 changes: 5 additions & 0 deletions docs/changelog/104142.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 104142
summary: Expose token authentication metrics
area: Authentication
type: enhancement
issues: []
5 changes: 5 additions & 0 deletions docs/changelog/104150.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 104150
summary: Correct profiled rewrite time for knn with a pre-filter
area: Search
type: bug
issues: []
6 changes: 6 additions & 0 deletions docs/changelog/104155.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 104155
summary: "Updated `missingTrainedModel` message to include: you may need to create\
\ it"
area: Machine Learning
type: enhancement
issues: []
5 changes: 5 additions & 0 deletions docs/changelog/104198.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 104198
summary: "[Connector API] Fix bug in configuration validation parser"
area: Application
type: bug
issues: []
5 changes: 5 additions & 0 deletions docs/changelog/104230.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 104230
summary: Undeploy elser when inference model deleted
area: Machine Learning
type: bug
issues: []
6 changes: 6 additions & 0 deletions docs/changelog/104259.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 104259
summary: Fix cancellation order in `CancellableRateLimitedFluxIterator`
area: Snapshot/Restore
type: bug
issues:
- 103054
6 changes: 6 additions & 0 deletions docs/changelog/104265.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 104265
summary: Remove `hashCode` and `equals` from `OperationModeUpdateTask`
area: ILM+SLM
type: bug
issues:
- 100871
5 changes: 5 additions & 0 deletions docs/reference/ccr/apis/follow/get-follow-stats.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ task. In this situation, the following task must be resumed manually with the
`index`::
(string) The name of the follower index.
`total_global_checkpoint_lag`::
(long) Indication of how much the follower is lagging the leader. This is the sum of the difference between the `leader_global_checkpoint` and the `follower_global_checkpoint` for all shards.
//Begin shards
`shards`::
(array) An array of shard-level following task statistics.
Expand Down Expand Up @@ -219,6 +222,7 @@ The API returns the following results:
"indices" : [
{
"index" : "follower_index",
"total_global_checkpoint_lag" : 256,
"shards" : [
{
"remote_cluster" : "remote_cluster",
Expand Down Expand Up @@ -255,6 +259,7 @@ The API returns the following results:
]
}
--------------------------------------------------
// TESTRESPONSE[s/"total_global_checkpoint_lag" : 256/"total_global_checkpoint_lag" : 0/]
// TESTRESPONSE[s/"leader_global_checkpoint" : 1024/"leader_global_checkpoint" : $body.indices.0.shards.0.leader_global_checkpoint/]
// TESTRESPONSE[s/"leader_max_seq_no" : 1536/"leader_max_seq_no" : $body.indices.0.shards.0.leader_max_seq_no/]
// TESTRESPONSE[s/"follower_global_checkpoint" : 768/"follower_global_checkpoint" : $body.indices.0.shards.0.follower_global_checkpoint/]
Expand Down
2 changes: 2 additions & 0 deletions docs/reference/ccr/apis/get-ccr-stats.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ The API returns the following results:
"indices" : [
{
"index" : "follower_index",
"total_global_checkpoint_lag" : 256,
"shards" : [
{
"remote_cluster" : "remote_cluster",
Expand Down Expand Up @@ -149,6 +150,7 @@ The API returns the following results:
}
}
--------------------------------------------------
// TESTRESPONSE[s/"total_global_checkpoint_lag" : 256/"total_global_checkpoint_lag" : 0/]
// TESTRESPONSE[s/"number_of_failed_follow_indices" : 0/"number_of_failed_follow_indices" : $body.auto_follow_stats.number_of_failed_follow_indices/]
// TESTRESPONSE[s/"number_of_failed_remote_cluster_state_requests" : 0/"number_of_failed_remote_cluster_state_requests" : $body.auto_follow_stats.number_of_failed_remote_cluster_state_requests/]
// TESTRESPONSE[s/"number_of_successful_follow_indices" : 1/"number_of_successful_follow_indices" : $body.auto_follow_stats.number_of_successful_follow_indices/]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<titleabbrev>Cancel connector sync job</titleabbrev>
++++

preview::[]

Cancels a connector sync job.

[[cancel-connector-sync-job-api-request]]
Expand Down
5 changes: 2 additions & 3 deletions docs/reference/connector/apis/check-in-connector-api.asciidoc
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
[[check-in-connector-api]]
=== Check in connector API

preview::[]

++++
<titleabbrev>Check in a connector</titleabbrev>
++++

preview::[]

Updates the `last_seen` field of a connector with current timestamp.

[[check-in-connector-api-request]]
Expand Down
Loading

0 comments on commit 8aa0562

Please sign in to comment.