Skip to content

Commit

Permalink
Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsbauman committed May 24, 2024
1 parent 3093ea4 commit 83c9164
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
public final class LazyRolloverAction extends ActionType<RolloverResponse> {

public static final NodeFeature DATA_STREAM_LAZY_ROLLOVER = new NodeFeature("data_stream.rollover.lazy");
public static final NodeFeature FAILURE_STORE_LAZY_ROLLOVER = new NodeFeature("data_stream.rollover.lazy.failure_store");

public static final LazyRolloverAction INSTANCE = new LazyRolloverAction();
public static final String NAME = "indices:admin/data_stream/lazy_rollover";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,6 @@ protected void masterOperation(
final String trialRolloverIndexName = trialRolloverNames.rolloverName();
MetadataRolloverService.validateIndexName(clusterState, trialRolloverIndexName);

if (rolloverRequest.isLazy() && targetFailureStore && DataStream.isFailureStoreFeatureFlagEnabled() == false) {
listener.onFailure(new IllegalArgumentException("Not all nodes in this cluster support lazily rolling over a failure store"));
return;
}

boolean isDataStream = metadata.dataStreams().containsKey(rolloverRequest.getRolloverTarget());
if (rolloverRequest.isLazy()) {
if (isDataStream == false || rolloverRequest.getConditions().hasConditions()) {
Expand Down

0 comments on commit 83c9164

Please sign in to comment.