Skip to content

Commit 345346d

Browse files
committed
Switch interval validation to accept DateHistogramInterval
1 parent 64b01b5 commit 345346d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/src/main/java/org/elasticsearch/cluster/metadata/DataStreamLifecycle.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,10 @@ static void validateRounds(List<DownsamplingRound> rounds) {
576576
+ "."
577577
);
578578
}
579-
DownsampleConfig.validateSourceAndTargetIntervals(previous.config(), round.config());
579+
DownsampleConfig.validateSourceAndTargetIntervals(
580+
previous.config().getFixedInterval(),
581+
round.config().getFixedInterval()
582+
);
580583
}
581584
}
582585
}

0 commit comments

Comments
 (0)