Skip to content

Commit 7ddff9b

Browse files
authored
Merge branch 'elastic:main' into plugin-install-directory
2 parents bba93c4 + 85d6e07 commit 7ddff9b

File tree

134 files changed

+2894
-1485
lines changed

Some content is hidden

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

134 files changed

+2894
-1485
lines changed

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
import java.util.Arrays;
4949
import java.util.List;
5050
import java.util.Optional;
51+
import java.util.concurrent.TimeUnit;
5152

5253
import javax.inject.Inject;
5354

@@ -199,7 +200,11 @@ public void execute(BuildFinishedFlowAction.Parameters parameters) throws FileNo
199200
try {
200201
// we are very generious here, as the upload can take
201202
// a long time depending on its size
202-
pb.start().waitFor(30, java.util.concurrent.TimeUnit.MINUTES);
203+
long timeoutSec = calculateUploadWaitTimeoutSeconds(uploadFile);
204+
boolean completedInTime = pb.start().waitFor(timeoutSec, TimeUnit.SECONDS);
205+
if (completedInTime == false) {
206+
System.out.println("Timed out waiting for buildkite artifact upload after " + timeoutSec + " seconds");
207+
}
203208
} catch (InterruptedException e) {
204209
System.out.println("Failed to upload buildkite artifact " + e.getMessage());
205210
}
@@ -304,5 +309,14 @@ private static String calculateArchivePath(Path path, Path projectPath) {
304309
}
305310
return archivePath;
306311
}
312+
313+
private static long calculateUploadWaitTimeoutSeconds(File file) {
314+
long fileSizeBytes = file.length();
315+
long fileSizeMB = fileSizeBytes / (1024 * 1024);
316+
317+
// Allocate 4 seconds per MB (assumes ~250 KB/s upload speed)
318+
// with min 10 seconds and max 30 minutes
319+
return Math.max(10, Math.min(1800, fileSizeMB * 4));
320+
}
307321
}
308322
}

docs/changelog/136828.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 136828
2+
summary: Can match phase coordinator duration APM metric
3+
area: Search
4+
type: enhancement
5+
issues: []

docs/changelog/136951.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 136951
2+
summary: Support different downsampling methods through ILM
3+
area: "ILM+SLM"
4+
type: enhancement
5+
issues: []

docs/changelog/137222.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 137222
2+
summary: "[Sentinel One] Add `manage`, `create_index`, `read`, `index`, `write`, `delete`, permission for third-party agent indices in the `Kibana system` to support the threat event data stream."
3+
area: Authorization
4+
type: enhancement
5+
issues:
6+
- 240901

docs/changelog/137375.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 137375
2+
summary: Allow opting out of force-merging on a cloned index in ILM's searchable snapshot
3+
action
4+
area: ILM+SLM
5+
type: enhancement
6+
issues: []

docs/changelog/137394.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 137394
2+
summary: Fix dropped ignore above fields
3+
area: Mapping
4+
type: bug
5+
issues:
6+
- 137360

docs/changelog/137399.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 137399
2+
summary: Allow allocating clones over low watermark
3+
area: Allocation
4+
type: bug
5+
issues: []

docs/reference/elasticsearch/index-lifecycle-actions/ilm-downsample.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ To use the `downsample` action in the `hot` phase, the `rollover` action **must*
1919

2020
`fixed_interval`
2121
: (Required, string) The [fixed time interval](docs-content://manage-data/lifecycle/rollup/understanding-groups.md#rollup-understanding-group-intervals) into which the data will be downsampled.
22+
2223
`force_merge_index` {applies_to}`stack: ga 9.3`
2324
: (Optional, boolean) When true, the downsampled index will be [force merged](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-forcemerge) to one [segment](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-segments). Defaults to `true`.
2425

26+
`sampling_method` {applies_to}`stack: ga 9.3`
27+
: (Optional, string) The sampling method that will be used to sample metrics; there are two methods available `aggregate` and
28+
the `last_value`. Defaults to `aggregate`.
2529

2630
## Example [ilm-downsample-ex]
2731

docs/reference/elasticsearch/index-lifecycle-actions/ilm-searchable-snapshot.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ By default, this snapshot is deleted by the [delete action](/reference/elasticse
4646

4747
This force merging occurs in the phase that the index is in **prior** to the `searchable_snapshot` action. For example, if using a `searchable_snapshot` action in the `hot` phase, the force merge will be performed on the hot nodes. If using a `searchable_snapshot` action in the `cold` phase, the force merge will be performed on whatever tier the index is **prior** to the `cold` phase (either `hot` or `warm`).
4848

49+
`force_merge_on_clone` {applies_to}`stack: ga 9.2.1`
50+
: (Optional, Boolean) By default, if `force_merge_index` is `true`, the index will first be cloned with 0 replicas and the force-merge will be performed on the clone before the searchable snapshot is created. This avoids performing the force-merge redundantly on replica shards, as the snapshot operation only uses primary shards. Setting this option to `false` will skip the clone step and perform the force-merge directly on the managed index. Defaults to `true`.
51+
4952
`total_shards_per_node`
50-
: The maximum number of shards (replicas and primaries) that will be allocated to a single node for the searchable snapshot index. Defaults to unbounded.
53+
: (Optional, Integer) The maximum number of shards (replicas and primaries) that will be allocated to a single node for the searchable snapshot index. Defaults to unbounded.
5154

5255

5356
## Examples [ilm-searchable-snapshot-ex]

docs/reference/query-languages/esql/limitations.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,28 @@ By default, an {{esql}} query returns up to 1,000 rows. You can increase the num
4646
* `geo_shape`
4747
* `point`
4848
* `shape`
49+
* TSDB metrics {preview}`9.2`
50+
* `counter`
51+
* `gauge`
52+
* `aggregate_metric_double`
4953

5054

5155

5256
### Unsupported types [_unsupported_types]
5357

5458
{{esql}} does not yet support the following field types:
5559

60+
::::{tab-set}
61+
:::{tab-item} 9.0-9.1
5662
* TSDB metrics
57-
58-
* `counter`
59-
* `position`
60-
* `aggregate_metric_double`
61-
63+
* `counter`
64+
* `gauge`
65+
* `aggregate_metric_double`
66+
:::
67+
:::{tab-item} 9.2+
68+
This limitation no longer exists and TSDB metrics are now supported (preview).
69+
:::
70+
::::
6271
* Date/time
6372

6473
* `date_range`
@@ -188,11 +197,16 @@ As discussed in more detail in [Using {{esql}} to query multiple indices](/refer
188197
* All underlying indexes and shards must be active. Using admin commands or UI, it is possible to pause an index or shard, for example by disabling a frozen tier instance, but then any {{esql}} query that includes that index or shard will fail, even if the query uses [`WHERE`](/reference/query-languages/esql/commands/where.md) to filter out the results from the paused index. If you see an error of type `search_phase_execution_exception`, with the message `Search rejected due to missing shards`, you likely have an index or shard in `UNASSIGNED` state.
189198
* The same field must have the same type across all indexes. If the same field is mapped to different types it is still possible to query the indexes, but the field must be [explicitly converted to a single type](/reference/query-languages/esql/esql-multi-index.md#esql-multi-index-union-types).
190199

200+
## Time series data streams [esql-tsdb]
191201

192-
## Time series data streams are not supported [esql-tsdb]
193-
202+
::::{tab-set}
203+
:::{tab-item} 9.0-9.1
194204
{{esql}} does not support querying time series data streams (TSDS).
195-
205+
:::
206+
:::{tab-item} 9.2+
207+
This limitation no longer exists and time series data streams (TSDS) are now supported (preview).
208+
:::
209+
::::
196210

197211
## Date math limitations [esql-limitations-date-math]
198212

0 commit comments

Comments
 (0)