|
@@ -158,7 +158,7 @@ public class Router extends CompositeService {
|
|
|
ROUTER_DEREGISTER_SUBCLUSTER_ENABLED, DEFAULT_ROUTER_DEREGISTER_SUBCLUSTER_ENABLED);
|
|
|
if (isDeregisterSubClusterEnabled) {
|
|
|
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,
|
|
|
0, scCleanerIntervalMs, TimeUnit.MILLISECONDS);
|
|
|
LOG.info("Scheduled SubClusterCleaner With Interval: {}.",
|