Skip to content
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

Refactor data stream lifecycle to use the template paradigm #124593

Merged
merged 20 commits into from
Mar 18, 2025
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
7ba1925
Move DownsamplingRounds our of the wrapper class.
gmarouli Mar 10, 2025
3117ab8
Introduce DataStreamLifecycle dedicated Template class and use it.
gmarouli Mar 11, 2025
bbf6507
Remove the need for explicit nulls from the DataStreamLifecycle
gmarouli Mar 11, 2025
cefb4c9
Fix effective retention bug
gmarouli Mar 11, 2025
f4a570d
Revert enabled flag to boolean instead of Boolean.
gmarouli Mar 11, 2025
7c5c277
Revert enabled flag to boolean instead of Boolean (also from the temp…
gmarouli Mar 11, 2025
ebd743f
Bug fix in XContent parser of the DataStreamLifecycle (downsampling f…
gmarouli Mar 11, 2025
934d155
Fix bwc serialisation errors
gmarouli Mar 12, 2025
67d10d1
Merge branch 'main' into refactor-data-stream-lifecycle
gmarouli Mar 12, 2025
f4ef99f
Fix tests
gmarouli Mar 12, 2025
21bbb31
Use getters in methods with heavier logic to facilitate testing
gmarouli Mar 12, 2025
16f48e9
Convert to the template `DataStreamLifecycle`in assertions when needed
gmarouli Mar 12, 2025
9797a7b
Merge with main
gmarouli Mar 12, 2025
f9cb602
Prepare backport patch to 8.19.0
gmarouli Mar 12, 2025
7ed4c67
Merge with main
gmarouli Mar 12, 2025
298a1cd
Remove incorrect nullable annotations
gmarouli Mar 12, 2025
b955541
Merge with main
gmarouli Mar 18, 2025
ebc6794
Remove the 8.19 patch until all previous backport versions have been …
gmarouli Mar 18, 2025
b025cb9
Make legacy reader and writer more explicit and readable
gmarouli Mar 18, 2025
4f75227
Merge branch 'main' into refactor-data-stream-lifecycle
gmarouli Mar 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge with main
gmarouli committed Mar 18, 2025
commit b955541f53035106b38949545e1d0b5ea425c5ad
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@
import org.elasticsearch.cluster.metadata.DataStreamLifecycle;
import org.elasticsearch.cluster.metadata.IndexMetadata;
import org.elasticsearch.cluster.metadata.Metadata;
import org.elasticsearch.cluster.metadata.ProjectMetadata;
import org.elasticsearch.cluster.metadata.ResettableValue;
import org.elasticsearch.cluster.metadata.Template;
import org.elasticsearch.common.compress.CompressedXContent;
6 changes: 4 additions & 2 deletions server/src/main/java/org/elasticsearch/TransportVersions.java
Original file line number Diff line number Diff line change
@@ -148,7 +148,7 @@ static TransportVersion def(int id) {
public static final TransportVersion RETRY_ILM_ASYNC_ACTION_REQUIRE_ERROR_8_19 = def(8_841_0_07);
public static final TransportVersion INFERENCE_CONTEXT_8_X = def(8_841_0_08);
public static final TransportVersion ML_INFERENCE_DEEPSEEK_8_19 = def(8_841_0_09);
public static final TransportVersion INTRODUCE_LIFECYCLE_TEMPLATE_8_19 = def(8_841_0_10);
public static final TransportVersion INTRODUCE_LIFECYCLE_TEMPLATE_8_19 = def(8_841_0_12);
public static final TransportVersion INITIAL_ELASTICSEARCH_9_0 = def(9_000_0_00);
public static final TransportVersion REMOVE_SNAPSHOT_FAILURES_90 = def(9_000_0_01);
public static final TransportVersion TRANSPORT_STATS_HANDLING_TIME_REQUIRED_90 = def(9_000_0_02);
@@ -186,7 +186,9 @@ static TransportVersion def(int id) {
public static final TransportVersion ESQL_THREAD_NAME_IN_DRIVER_PROFILE = def(9_027_0_00);
public static final TransportVersion INFERENCE_CONTEXT = def(9_028_0_00);
public static final TransportVersion ML_INFERENCE_DEEPSEEK = def(9_029_00_0);
public static final TransportVersion INTRODUCE_LIFECYCLE_TEMPLATE = def(9_030_0_00);
public static final TransportVersion ESQL_FAILURE_FROM_REMOTE = def(9_030_00_0);
public static final TransportVersion INDEX_RESHARDING_METADATA = def(9_031_0_00);
public static final TransportVersion INTRODUCE_LIFECYCLE_TEMPLATE = def(9_032_0_00);

/*
* STOP! READ THIS FIRST! No, really,
You are viewing a condensed version of this merge commit. You can view the full changes here.