HDFS-15530. RBF: Fix typo in DFS_ROUTER_QUOTA_CACHE_UPDATE_INTERVAL var definition. Contributed by Sha Fanghao.
This commit is contained in:
parent
d89af79507
commit
eae0035a2d
|
@ -312,9 +312,9 @@ public class RBFConfigKeys extends CommonConfigurationKeysPublic {
|
|||
public static final String DFS_ROUTER_QUOTA_ENABLE =
|
||||
FEDERATION_ROUTER_PREFIX + "quota.enable";
|
||||
public static final boolean DFS_ROUTER_QUOTA_ENABLED_DEFAULT = false;
|
||||
public static final String DFS_ROUTER_QUOTA_CACHE_UPATE_INTERVAL =
|
||||
public static final String DFS_ROUTER_QUOTA_CACHE_UPDATE_INTERVAL =
|
||||
FEDERATION_ROUTER_PREFIX + "quota-cache.update.interval";
|
||||
public static final long DFS_ROUTER_QUOTA_CACHE_UPATE_INTERVAL_DEFAULT =
|
||||
public static final long DFS_ROUTER_QUOTA_CACHE_UPDATE_INTERVAL_DEFAULT =
|
||||
60000;
|
||||
|
||||
// HDFS Router security
|
||||
|
|
|
@ -70,8 +70,8 @@ public class RouterQuotaUpdateService extends PeriodicService {
|
|||
@Override
|
||||
protected void serviceInit(Configuration conf) throws Exception {
|
||||
this.setIntervalMs(conf.getTimeDuration(
|
||||
RBFConfigKeys.DFS_ROUTER_QUOTA_CACHE_UPATE_INTERVAL,
|
||||
RBFConfigKeys.DFS_ROUTER_QUOTA_CACHE_UPATE_INTERVAL_DEFAULT,
|
||||
RBFConfigKeys.DFS_ROUTER_QUOTA_CACHE_UPDATE_INTERVAL,
|
||||
RBFConfigKeys.DFS_ROUTER_QUOTA_CACHE_UPDATE_INTERVAL_DEFAULT,
|
||||
TimeUnit.MILLISECONDS));
|
||||
|
||||
super.serviceInit(conf);
|
||||
|
|
|
@ -99,7 +99,7 @@ public class TestRouterQuota {
|
|||
.quota()
|
||||
.rpc()
|
||||
.build();
|
||||
routerConf.set(RBFConfigKeys.DFS_ROUTER_QUOTA_CACHE_UPATE_INTERVAL, "2s");
|
||||
routerConf.set(RBFConfigKeys.DFS_ROUTER_QUOTA_CACHE_UPDATE_INTERVAL, "2s");
|
||||
|
||||
// override some hdfs settings that used in testing space quota
|
||||
Configuration hdfsConf = new Configuration(false);
|
||||
|
|
Loading…
Reference in New Issue