YARN-11553. Change the time unit of scCleanerIntervalMs in Router. (#5965)
This commit is contained in:
parent
ff1570acfa
commit
7368226332
@ -158,7 +158,7 @@ protected void serviceStart() throws Exception {
|
|||||||
ROUTER_DEREGISTER_SUBCLUSTER_ENABLED, DEFAULT_ROUTER_DEREGISTER_SUBCLUSTER_ENABLED);
|
ROUTER_DEREGISTER_SUBCLUSTER_ENABLED, DEFAULT_ROUTER_DEREGISTER_SUBCLUSTER_ENABLED);
|
||||||
if (isDeregisterSubClusterEnabled) {
|
if (isDeregisterSubClusterEnabled) {
|
||||||
long scCleanerIntervalMs = this.conf.getTimeDuration(ROUTER_SUBCLUSTER_CLEANER_INTERVAL_TIME,
|
long scCleanerIntervalMs = this.conf.getTimeDuration(ROUTER_SUBCLUSTER_CLEANER_INTERVAL_TIME,
|
||||||
DEFAULT_ROUTER_SUBCLUSTER_CLEANER_INTERVAL_TIME, TimeUnit.MINUTES);
|
DEFAULT_ROUTER_SUBCLUSTER_CLEANER_INTERVAL_TIME, TimeUnit.MILLISECONDS);
|
||||||
this.scheduledExecutorService.scheduleAtFixedRate(this.subClusterCleaner,
|
this.scheduledExecutorService.scheduleAtFixedRate(this.subClusterCleaner,
|
||||||
0, scCleanerIntervalMs, TimeUnit.MILLISECONDS);
|
0, scCleanerIntervalMs, TimeUnit.MILLISECONDS);
|
||||||
LOG.info("Scheduled SubClusterCleaner With Interval: {}.",
|
LOG.info("Scheduled SubClusterCleaner With Interval: {}.",
|
||||||
|
Loading…
Reference in New Issue
Block a user