-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Remove TSDB feature flag #88585
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
Remove TSDB feature flag #88585
Changes from 2 commits
0b3539f
35c110c
19ad6b1
35f210f
5fe6b2f
806c06b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,7 +13,6 @@ | |
| import org.elasticsearch.cluster.metadata.Metadata; | ||
| import org.elasticsearch.common.io.stream.NamedWriteableRegistry; | ||
| import org.elasticsearch.common.settings.Setting; | ||
| import org.elasticsearch.index.IndexSettings; | ||
| import org.elasticsearch.license.DeleteLicenseAction; | ||
| import org.elasticsearch.license.GetBasicStatusAction; | ||
| import org.elasticsearch.license.GetLicenseAction; | ||
|
|
@@ -414,17 +413,15 @@ public List<ActionType<? extends ActionResponse>> getClientActions() { | |
| ); | ||
|
|
||
| // TSDB Downsampling / Rollup | ||
| if (IndexSettings.isTimeSeriesModeEnabled()) { | ||
| actions.add(RollupIndexerAction.INSTANCE); | ||
| actions.add(RollupAction.INSTANCE); | ||
| } | ||
| actions.add(RollupIndexerAction.INSTANCE); | ||
| actions.add(RollupAction.INSTANCE); | ||
|
|
||
| return actions; | ||
| } | ||
|
|
||
| @Override | ||
| public List<NamedWriteableRegistry.Entry> getNamedWriteables() { | ||
| List<NamedWriteableRegistry.Entry> namedWriteables = new ArrayList<>( | ||
| return new ArrayList<>( | ||
| Arrays.asList( | ||
| // graph | ||
| new NamedWriteableRegistry.Entry(XPackFeatureSet.Usage.class, XPackField.GRAPH, GraphFeatureSetUsage::new), | ||
|
|
@@ -568,16 +565,11 @@ public List<NamedWriteableRegistry.Entry> getNamedWriteables() { | |
| // Data Tiers | ||
| new NamedWriteableRegistry.Entry(XPackFeatureSet.Usage.class, XPackField.DATA_TIERS, DataTiersFeatureSetUsage::new), | ||
| // Archive | ||
| new NamedWriteableRegistry.Entry(XPackFeatureSet.Usage.class, XPackField.ARCHIVE, ArchiveFeatureSetUsage::new) | ||
| new NamedWriteableRegistry.Entry(XPackFeatureSet.Usage.class, XPackField.ARCHIVE, ArchiveFeatureSetUsage::new), | ||
| // TSDB Downsampling / Rollup | ||
| new NamedWriteableRegistry.Entry(LifecycleAction.class, RollupILMAction.NAME, RollupILMAction::new) | ||
|
||
| ) | ||
| ); | ||
|
|
||
| // TSDB Downsampling / Rollup | ||
| if (IndexSettings.isTimeSeriesModeEnabled()) { | ||
| namedWriteables.add(new NamedWriteableRegistry.Entry(LifecycleAction.class, RollupILMAction.NAME, RollupILMAction::new)); | ||
| } | ||
|
|
||
| return namedWriteables; | ||
| } | ||
|
|
||
| @Override | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,6 @@ | |
| import org.elasticsearch.common.io.stream.StreamOutput; | ||
| import org.elasticsearch.common.util.set.Sets; | ||
| import org.elasticsearch.core.TimeValue; | ||
| import org.elasticsearch.index.IndexSettings; | ||
|
|
||
| import java.io.IOException; | ||
| import java.util.ArrayList; | ||
|
|
@@ -27,7 +26,6 @@ | |
| import java.util.Optional; | ||
| import java.util.Set; | ||
| import java.util.stream.Collectors; | ||
| import java.util.stream.Stream; | ||
|
|
||
| import static java.util.stream.Collectors.toList; | ||
|
|
||
|
|
@@ -51,16 +49,16 @@ public class TimeseriesLifecycleType implements LifecycleType { | |
| static final String DELETE_PHASE = "delete"; | ||
| public static final List<String> ORDERED_VALID_PHASES = List.of(HOT_PHASE, WARM_PHASE, COLD_PHASE, FROZEN_PHASE, DELETE_PHASE); | ||
|
|
||
| public static final List<String> ORDERED_VALID_HOT_ACTIONS = Stream.of( | ||
| public static final List<String> ORDERED_VALID_HOT_ACTIONS = Arrays.asList( | ||
| SetPriorityAction.NAME, | ||
| UnfollowAction.NAME, | ||
| RolloverAction.NAME, | ||
| ReadOnlyAction.NAME, | ||
| IndexSettings.isTimeSeriesModeEnabled() ? RollupILMAction.NAME : null, | ||
| RollupILMAction.NAME, | ||
|
||
| ShrinkAction.NAME, | ||
| ForceMergeAction.NAME, | ||
| SearchableSnapshotAction.NAME | ||
| ).filter(Objects::nonNull).toList(); | ||
| ); | ||
| public static final List<String> ORDERED_VALID_WARM_ACTIONS = Arrays.asList( | ||
| SetPriorityAction.NAME, | ||
| UnfollowAction.NAME, | ||
|
|
@@ -70,16 +68,16 @@ public class TimeseriesLifecycleType implements LifecycleType { | |
| ShrinkAction.NAME, | ||
| ForceMergeAction.NAME | ||
| ); | ||
| public static final List<String> ORDERED_VALID_COLD_ACTIONS = Stream.of( | ||
| public static final List<String> ORDERED_VALID_COLD_ACTIONS = Arrays.asList( | ||
| SetPriorityAction.NAME, | ||
| UnfollowAction.NAME, | ||
| ReadOnlyAction.NAME, | ||
| SearchableSnapshotAction.NAME, | ||
| AllocateAction.NAME, | ||
| MigrateAction.NAME, | ||
| FreezeAction.NAME, | ||
| IndexSettings.isTimeSeriesModeEnabled() ? RollupILMAction.NAME : null | ||
| ).filter(Objects::nonNull).toList(); | ||
| RollupILMAction.NAME | ||
|
||
| ); | ||
| public static final List<String> ORDERED_VALID_FROZEN_ACTIONS = List.of(UnfollowAction.NAME, SearchableSnapshotAction.NAME); | ||
| public static final List<String> ORDERED_VALID_DELETE_ACTIONS = List.of(WaitForSnapshotAction.NAME, DeleteAction.NAME); | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,7 +28,6 @@ | |
| import org.elasticsearch.env.NodeEnvironment; | ||
| import org.elasticsearch.health.HealthIndicatorService; | ||
| import org.elasticsearch.index.IndexModule; | ||
| import org.elasticsearch.index.IndexSettings; | ||
| import org.elasticsearch.license.XPackLicenseState; | ||
| import org.elasticsearch.plugins.ActionPlugin; | ||
| import org.elasticsearch.plugins.HealthPlugin; | ||
|
|
@@ -330,11 +329,7 @@ private static List<NamedXContentRegistry.Entry> xContentEntries() { | |
| ); | ||
|
|
||
| // TSDB Downsampling / Rollup | ||
| if (IndexSettings.isTimeSeriesModeEnabled()) { | ||
| entries.add( | ||
| new NamedXContentRegistry.Entry(LifecycleAction.class, new ParseField(RollupILMAction.NAME), RollupILMAction::parse) | ||
| ); | ||
| } | ||
| entries.add(new NamedXContentRegistry.Entry(LifecycleAction.class, new ParseField(RollupILMAction.NAME), RollupILMAction::parse)); | ||
|
||
| return List.copyOf(entries); | ||
| } | ||
|
|
||
|
|
||
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.
Maybe adding the rollup actions can move a few lines above in the
Arrays.asList()statement like everything else.