HDFS-15530. RBF: Fix typo in DFS_ROUTER_QUOTA_CACHE_UPDATE_INTERVAL var definition. Contributed by Sha Fanghao.

This commit is contained in:
Inigo Goiri 2020-09-28 09:40:39 -07:00
parent d89af79507
commit eae0035a2d
3 changed files with 5 additions and 5 deletions

View File

@ -312,9 +312,9 @@ public class RBFConfigKeys extends CommonConfigurationKeysPublic {
public static final String DFS_ROUTER_QUOTA_ENABLE = public static final String DFS_ROUTER_QUOTA_ENABLE =
FEDERATION_ROUTER_PREFIX + "quota.enable"; FEDERATION_ROUTER_PREFIX + "quota.enable";
public static final boolean DFS_ROUTER_QUOTA_ENABLED_DEFAULT = false; 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"; 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; 60000;
// HDFS Router security // HDFS Router security

View File

@ -70,8 +70,8 @@ public RouterQuotaUpdateService(final Router router) throws IOException {
@Override @Override
protected void serviceInit(Configuration conf) throws Exception { protected void serviceInit(Configuration conf) throws Exception {
this.setIntervalMs(conf.getTimeDuration( this.setIntervalMs(conf.getTimeDuration(
RBFConfigKeys.DFS_ROUTER_QUOTA_CACHE_UPATE_INTERVAL, RBFConfigKeys.DFS_ROUTER_QUOTA_CACHE_UPDATE_INTERVAL,
RBFConfigKeys.DFS_ROUTER_QUOTA_CACHE_UPATE_INTERVAL_DEFAULT, RBFConfigKeys.DFS_ROUTER_QUOTA_CACHE_UPDATE_INTERVAL_DEFAULT,
TimeUnit.MILLISECONDS)); TimeUnit.MILLISECONDS));
super.serviceInit(conf); super.serviceInit(conf);

View File

@ -99,7 +99,7 @@ public void setUp() throws Exception {
.quota() .quota()
.rpc() .rpc()
.build(); .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 // override some hdfs settings that used in testing space quota
Configuration hdfsConf = new Configuration(false); Configuration hdfsConf = new Configuration(false);