Skip to content

Commit

Permalink
Execute PluginVersionSweepCoordinator on GENERIC threadpool
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Ashiwal <[email protected]>
  • Loading branch information
r1walz committed Jun 20, 2024
1 parent 52f331f commit 5dda370
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ class PluginVersionSweepCoordinator(

override fun clusterChanged(event: ClusterChangedEvent) {
if (event.nodesChanged() || event.isNewCluster) {
skipExecution.sweepISMPluginVersion()
initBackgroundSweepISMPluginVersionExecution()
threadPool.generic().execute {
skipExecution.sweepISMPluginVersion()
initBackgroundSweepISMPluginVersionExecution()
}
}
}

Expand All @@ -85,7 +87,7 @@ class PluginVersionSweepCoordinator(
}
}
scheduledSkipExecution =
threadPool.scheduleWithFixedDelay(scheduledJob, sweepSkipPeriod, ThreadPool.Names.MANAGEMENT)
threadPool.scheduleWithFixedDelay(scheduledJob, sweepSkipPeriod, ThreadPool.Names.GENERIC)
}

private fun isIndexStateManagementEnabled(): Boolean = indexStateManagementEnabled == true
Expand Down

0 comments on commit 5dda370

Please sign in to comment.