- Notifications
You must be signed in to change notification settings - Fork 25.7k
DLM: Better max_age rollover for tiny retentions #134941
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+119 −4
Merged
Changes from 3 commits
Commits
Show all changes
5 commits Select commit Hold shift + click to select a range
2f36ef4 Streams: Adjust max_age for tiny retentions
szybia 0935289 Update docs/changelog/134941.yaml
szybia d763603 Update docs/changelog/134941.yaml
szybia 23d05ac Merge remote-tracking branch 'upstream/main' into dlm-tiny-retentions
szybia cdd8cee update summary
szybia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| pr: 134941 | ||
| summary: "Streams: Adjust `max_age` for tiny retentions" | ||
| area: Data streams | ||
| type: enhancement | ||
| issues: | ||
| - 130960 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions 53 ...streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/270_small_retention.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| --- | ||
| teardown: | ||
| - do: | ||
| indices.delete_data_stream: | ||
| name: "tiny-retention-data-stream" | ||
| ignore: 404 | ||
| - do: | ||
| indices.delete_index_template: | ||
| name: "tiny-retention-template" | ||
| ignore: 404 | ||
| | ||
| --- | ||
| "Test failure store rollover with tiny retention": | ||
| - requires: | ||
| test_runner_features: [ capabilities, allowed_warnings ] | ||
| reason: "Exposing failures lifecycle config in templates was added in 9.1+" | ||
| capabilities: | ||
| - method: GET | ||
| path: /_data_stream/{target} | ||
| capabilities: [ 'failure_store.lifecycle' ] | ||
| - do: | ||
| indices.put_index_template: | ||
| name: tiny-retention-template | ||
| body: | ||
| index_patterns: [tiny-retention-*] | ||
| template: | ||
| settings: | ||
| index.number_of_replicas: 0 | ||
| lifecycle: | ||
| data_retention: "1d" | ||
| data_stream_options: | ||
| failure_store: | ||
| enabled: true | ||
| lifecycle: | ||
| data_retention: "12h" | ||
| data_stream: {} | ||
| | ||
| - do: | ||
| indices.create_data_stream: | ||
| name: tiny-retention-data-stream | ||
| | ||
| - do: | ||
| indices.get_data_stream: | ||
| name: "tiny-retention-data-stream" | ||
| include_defaults: true | ||
| - length: { data_streams: 1 } | ||
| - match: { data_streams.0.name: tiny-retention-data-stream } | ||
| - match: { data_streams.0.lifecycle.data_retention: "1d" } | ||
| - match: { data_streams.0.lifecycle.rollover.max_age: "1h [automatic]" } | ||
| - match: { data_streams.0.failure_store.enabled: true } | ||
| - match: { data_streams.0.failure_store.lifecycle.enabled: true } | ||
| - match: { data_streams.0.failure_store.lifecycle.data_retention: "12h" } | ||
| - match: { data_streams.0.failure_store.lifecycle.rollover.max_age: "1h [automatic]" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change this since it's not specific to streams:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated to best of my ability to keep title under 50 chars
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have to keep the summaries under 50 chars I think? That limit is usually for GH PR titles I believe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, assumed we want to keep these the same
i'll keep this in mind for the future