Skip to content

Commit 7a98581

Browse files
committed
cleanup
Signed-off-by: Jackie Han <jkhanjob@gmail.com>
1 parent 864de68 commit 7a98581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/opensearch/timeseries/indices/IndexManagement.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ public void onClusterManager() {
10821082

10831083
// schedule the next rollover for approx MAX_AGE later
10841084
scheduledRollover = threadPool
1085-
.scheduleWithFixedDelay(() -> rolloverAndDeleteHistoryIndex(), TimeValue.timeValueMinutes(1), executorName());
1085+
.scheduleWithFixedDelay(() -> rolloverAndDeleteHistoryIndex(), historyRolloverPeriod, executorName());
10861086
} catch (Exception e) {
10871087
// This should be run on cluster startup
10881088
logger.error("Error rollover result indices. " + "Can't rollover result until clusterManager node is restarted.", e);

0 commit comments

Comments
 (0)