Skip to content

Commit 67e4185

Browse files
Merge branch 'main' into saml-private-attributes-predicate
2 parents 433c064 + 06da8a4 commit 67e4185

File tree

37 files changed

+775
-217
lines changed

37 files changed

+775
-217
lines changed

docs/changelog/133954.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 133954
2+
summary: "ILM: Force merge on zero-replica cloned index before snapshotting for searchable snapshots"
3+
area: ILM+SLM
4+
type: enhancement
5+
issues:
6+
- 75478

docs/changelog/134033.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 134033
2+
summary: Fix FORK with union-types
3+
area: ES|QL
4+
type: bug
5+
issues:
6+
- 133973

docs/docset.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ subs:
3535
api-prereq-title: "Prerequisites"
3636
api-description-title: "Description"
3737
api-path-parms-title: "Path parameters"
38-
api-query-parms-title: "Query parameters"
3938
api-request-body-title: "Request body"
4039
api-examples-title: "Examples"
4140
ecloud: "Elastic Cloud"
@@ -49,7 +48,6 @@ subs:
4948
serverless-full: "Elastic Cloud Serverless"
5049
serverless-short: "Serverless"
5150
es-serverless: "Elasticsearch Serverless"
52-
ess-utm-params: "?page=docs&placement=docs-body"
5351
cloud-only: "This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported."
5452
security-app: "Elastic Security app"
5553
stack-monitor-app: "Stack Monitoring"
@@ -87,13 +85,10 @@ subs:
8785
search-snaps: "searchable snapshots"
8886
slm: "snapshot lifecycle management"
8987
slm-init: "SLM"
90-
dfeed: "datafeed"
9188
dfeeds: "datafeeds"
9289
dfeeds-cap: "Datafeeds"
9390
anomaly-detect: "anomaly detection"
9491
anomaly-jobs: "anomaly detection jobs"
95-
dataframe: "data frame"
96-
dataframe-cap: "Data frame"
9792
transform: "transform"
9893
transforms: "transforms"
9994
transforms-cap: "Transforms"
@@ -113,4 +108,3 @@ subs:
113108
nlp: "natural language processing"
114109
index-manage-app: "Index Management"
115110
connectors-app: "Connectors"
116-
ingest-pipelines-app: "Ingest Pipelines"

modules/ingest-common/src/yamlRestTest/resources/rest-api-spec/test/ingest/270_set_processor.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ teardown:
66
ignore: 404
77

88
---
9-
"Test set processor with template value":
9+
"Test set processor with a templated value":
1010
- do:
1111
ingest.put_pipeline:
1212
id: "1"
@@ -53,6 +53,7 @@ teardown:
5353
index: test
5454
id: "2"
5555
- match: { _source.foo: "hello" }
56+
5657
---
5758
"Test set processor with index change and require_alias":
5859
- do:
@@ -295,3 +296,38 @@ teardown:
295296
- match: { _source.result_2: "{{bar}}" }
296297
- match: { _source.old_bar: 2 }
297298
- match: { _source.bar: 3 }
299+
300+
---
301+
"Test set processor with ignore_empty_value and a literal empty value":
302+
- do:
303+
ingest.put_pipeline:
304+
id: "1"
305+
body: >
306+
{
307+
"processors": [
308+
{
309+
"set" : {
310+
"description": "we don't forbid this, even though it's a little silly",
311+
"field" : "foo",
312+
"value" : "",
313+
"ignore_empty_value" : true
314+
}
315+
}
316+
]
317+
}
318+
- match: { acknowledged: true }
319+
320+
- do:
321+
index:
322+
index: test
323+
id: "1"
324+
pipeline: "1"
325+
body: {
326+
foo: "hello"
327+
}
328+
329+
- do:
330+
get:
331+
index: test
332+
id: "1"
333+
- match: { _source.foo: "" }

server/src/main/java/org/elasticsearch/TransportVersions.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,6 @@ static TransportVersion def(int id) {
203203
public static final TransportVersion ESQL_FIXED_INDEX_LIKE_8_19 = def(8_841_0_64);
204204
public static final TransportVersion INITIAL_ELASTICSEARCH_8_19_4 = def(8_841_0_68);
205205
public static final TransportVersion V_9_0_0 = def(9_000_0_09);
206-
public static final TransportVersion INITIAL_ELASTICSEARCH_9_0_1 = def(9_000_0_10);
207-
public static final TransportVersion INITIAL_ELASTICSEARCH_9_0_2 = def(9_000_0_11);
208-
public static final TransportVersion INITIAL_ELASTICSEARCH_9_0_3 = def(9_000_0_12);
209-
public static final TransportVersion INITIAL_ELASTICSEARCH_9_0_4 = def(9_000_0_13);
210206
public static final TransportVersion INITIAL_ELASTICSEARCH_9_0_7 = def(9_000_0_16);
211207
public static final TransportVersion COHERE_BIT_EMBEDDING_TYPE_SUPPORT_ADDED = def(9_001_0_00);
212208
public static final TransportVersion REMOVE_SNAPSHOT_FAILURES = def(9_002_0_00);

server/src/main/java/org/elasticsearch/action/bulk/TransportAbstractBulkAction.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
public abstract class TransportAbstractBulkAction extends HandledTransportAction<BulkRequest, BulkResponse> {
6565
private static final Logger logger = LogManager.getLogger(TransportAbstractBulkAction.class);
6666

67-
public static final Set<String> STREAMS_ALLOWED_PARAMS = new HashSet<>(8) {
67+
public static final Set<String> STREAMS_ALLOWED_PARAMS = new HashSet<>(9) {
6868
{
6969
add("error_trace");
7070
add("filter_path");
@@ -73,6 +73,7 @@ public abstract class TransportAbstractBulkAction extends HandledTransportAction
7373
add("op_type");
7474
add("pretty");
7575
add("refresh");
76+
add("require_data_stream");
7677
add("timeout");
7778
}
7879
};

server/src/main/java/org/elasticsearch/cluster/metadata/LifecycleExecutionState.java

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public record LifecycleExecutionState(
4040
String snapshotName,
4141
String shrinkIndexName,
4242
String snapshotIndexName,
43-
String downsampleIndexName
43+
String downsampleIndexName,
44+
String forceMergeCloneIndexName
4445
) {
4546

4647
public static final String ILM_CUSTOM_METADATA_KEY = "ilm";
@@ -64,6 +65,7 @@ public record LifecycleExecutionState(
6465
private static final String SNAPSHOT_INDEX_NAME = "snapshot_index_name";
6566
private static final String SHRINK_INDEX_NAME = "shrink_index_name";
6667
private static final String DOWNSAMPLE_INDEX_NAME = "rollup_index_name";
68+
private static final String FORCE_MERGE_CLONE_INDEX_NAME = "force_merge_clone_index_name";
6769

6870
public static final LifecycleExecutionState EMPTY_STATE = LifecycleExecutionState.builder().build();
6971

@@ -89,7 +91,8 @@ public static Builder builder(LifecycleExecutionState state) {
8991
.setShrinkIndexName(state.shrinkIndexName)
9092
.setSnapshotIndexName(state.snapshotIndexName)
9193
.setDownsampleIndexName(state.downsampleIndexName)
92-
.setStepTime(state.stepTime);
94+
.setStepTime(state.stepTime)
95+
.setForceMergeCloneIndexName(state.forceMergeCloneIndexName);
9396
}
9497

9598
public static LifecycleExecutionState fromCustomMetadata(Map<String, String> customData) {
@@ -202,6 +205,10 @@ public static LifecycleExecutionState fromCustomMetadata(Map<String, String> cus
202205
if (downsampleIndexName != null) {
203206
builder.setDownsampleIndexName(downsampleIndexName);
204207
}
208+
String forceMergeCloneIndexName = customData.get(FORCE_MERGE_CLONE_INDEX_NAME);
209+
if (forceMergeCloneIndexName != null) {
210+
builder.setForceMergeCloneIndexName(forceMergeCloneIndexName);
211+
}
205212
return builder.build();
206213
}
207214

@@ -274,6 +281,9 @@ public Map<String, String> asMap() {
274281
if (downsampleIndexName != null) {
275282
result.put(DOWNSAMPLE_INDEX_NAME, downsampleIndexName);
276283
}
284+
if (forceMergeCloneIndexName != null) {
285+
result.put(FORCE_MERGE_CLONE_INDEX_NAME, forceMergeCloneIndexName);
286+
}
277287
return Collections.unmodifiableMap(result);
278288
}
279289

@@ -307,6 +317,7 @@ public static class Builder {
307317
private String shrinkIndexName;
308318
private String snapshotIndexName;
309319
private String downsampleIndexName;
320+
private String forceMergeCloneIndexName;
310321

311322
public Builder setPhase(String phase) {
312323
this.phase = phase;
@@ -398,6 +409,11 @@ public Builder setDownsampleIndexName(String downsampleIndexName) {
398409
return this;
399410
}
400411

412+
public Builder setForceMergeCloneIndexName(String forceMergeCloneIndexName) {
413+
this.forceMergeCloneIndexName = forceMergeCloneIndexName;
414+
return this;
415+
}
416+
401417
public LifecycleExecutionState build() {
402418
return new LifecycleExecutionState(
403419
phase,
@@ -417,7 +433,8 @@ public LifecycleExecutionState build() {
417433
snapshotName,
418434
shrinkIndexName,
419435
snapshotIndexName,
420-
downsampleIndexName
436+
downsampleIndexName,
437+
forceMergeCloneIndexName
421438
);
422439
}
423440
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9000010
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9000011
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9000012

0 commit comments

Comments
 (0)