Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
history write index is rolled over even if the history indices are
disabled
  • Loading branch information
bowenlan-amzn committed Sep 9, 2021
1 parent f68e8be commit f195e93
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class IndexStateManagementHistory(
override fun onMaster() {
try {
// try to rollover immediately as we might be restarting the cluster
rolloverHistoryIndex()
if (historyEnabled) rolloverHistoryIndex()
// schedule the next rollover for approx MAX_AGE later
scheduledRollover = threadPool.scheduleWithFixedDelay(
{ rolloverAndDeleteHistoryIndex() },
Expand Down

0 comments on commit f195e93

Please sign in to comment.