Skip to content

Commit 7368226

Browse files
authored
YARN-11553. Change the time unit of scCleanerIntervalMs in Router. (#5965)
1 parent ff1570a commit 7368226

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/Router.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ protected void serviceStart() throws Exception {
158158
ROUTER_DEREGISTER_SUBCLUSTER_ENABLED, DEFAULT_ROUTER_DEREGISTER_SUBCLUSTER_ENABLED);
159159
if (isDeregisterSubClusterEnabled) {
160160
long scCleanerIntervalMs = this.conf.getTimeDuration(ROUTER_SUBCLUSTER_CLEANER_INTERVAL_TIME,
161-
DEFAULT_ROUTER_SUBCLUSTER_CLEANER_INTERVAL_TIME, TimeUnit.MINUTES);
161+
DEFAULT_ROUTER_SUBCLUSTER_CLEANER_INTERVAL_TIME, TimeUnit.MILLISECONDS);
162162
this.scheduledExecutorService.scheduleAtFixedRate(this.subClusterCleaner,
163163
0, scCleanerIntervalMs, TimeUnit.MILLISECONDS);
164164
LOG.info("Scheduled SubClusterCleaner With Interval: {}.",

0 commit comments

Comments
 (0)