Skip to content

[8.x] [DLM]Use default lifecycle instance instead of default constructor (#126461) #126485

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
merged 1 commit into from
Apr 8, 2025

Conversation

gmarouli
Copy link
Contributor

@gmarouli gmarouli commented Apr 8, 2025

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

…lastic#126461)

When creating the an empty lifecycle we used to use the default
constructor. This is not just for efficiency but it will allow us to
separate the default data and failures lifecycle in the future.

(cherry picked from commit 060a9b7)

# Conflicts:
#	server/src/test/java/org/elasticsearch/cluster/metadata/DataStreamLifecycleWithRetentionWarningsTests.java
#	server/src/test/java/org/elasticsearch/cluster/metadata/MetadataCreateDataStreamServiceTests.java
#	server/src/test/java/org/elasticsearch/cluster/metadata/MetadataIndexTemplateServiceTests.java
@gmarouli gmarouli added >refactoring :Data Management/Data streams Data streams and their lifecycles auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) v8.19.0 and removed v8.19.0 labels Apr 8, 2025
@elasticsearchmachine elasticsearchmachine merged commit 6cd76fc into elastic:8.x Apr 8, 2025
15 checks passed
@gmarouli gmarouli deleted the backport/8.x/pr-126461 branch April 8, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Data Management/Data streams Data streams and their lifecycles >refactoring v8.19.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants