You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose global retention settings via data stream lifecycle API (elastic#112210)
In this PR we expose the global retention via the `GET
_data_stream/{target}/_lifecycle` API.
Since the global retention is a main feature of the data stream
lifecycle we chose to expose it by default.
```
GET /_data_stream/my-data-stream/_lifecycle
{
"global_retention": {
"default_retention": "7d",
"max_retention": "365d"
},
"data_streams": [...]
}
```
Copy file name to clipboardExpand all lines: modules/data-streams/src/main/java/org/elasticsearch/datastreams/lifecycle/rest/RestGetDataStreamLifecycleAction.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,6 @@ public boolean allowSystemIndexAccessByDefault() {
Copy file name to clipboardExpand all lines: modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/lifecycle/20_basic.yml
+75-8Lines changed: 75 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
setup:
2
-
- skip:
3
-
features: allowed_warnings
4
-
cluster_features: ["gte_v8.11.0"]
5
-
reason: "Data stream lifecycles only supported in 8.11+"
2
+
- requires:
3
+
cluster_features: [ "gte_v8.11.0" ]
4
+
reason: "Data stream lifecycle was released as tech preview in 8.11"
5
+
test_runner_features: allowed_warnings
6
6
- do:
7
7
allowed_warnings:
8
8
- "index template [my-lifecycle] has index patterns [data-stream-with-lifecycle] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-lifecycle] will take precedence during new index creation"
Copy file name to clipboardExpand all lines: modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/lifecycle/30_not_found.yml
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
setup:
2
-
- skip:
3
-
features: allowed_warnings
4
-
cluster_features: ["gte_v8.11.0"]
5
-
reason: "Data stream lifecycle was GA in 8.11"
2
+
- requires:
3
+
cluster_features: [ "gte_v8.11.0" ]
4
+
reason: "Data stream lifecycle was released as tech preview in 8.11"
5
+
test_runner_features: allowed_warnings
6
6
- do:
7
7
allowed_warnings:
8
8
- "index template [my-lifecycle] has index patterns [my-data-stream-1] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-lifecycle] will take precedence during new index creation"
Copy file name to clipboardExpand all lines: server/src/test/java/org/elasticsearch/action/datastreams/lifecycle/GetDataStreamLifecycleActionTests.java
0 commit comments