HADOOP-12659. Incorrect usage of config parameters in token manager of KMS. Contributed by Mingliang Liu.

(cherry picked from commit f3427d3766)
This commit is contained in:
Xiaoyu Yao 2016-01-21 13:51:58 -08:00
parent 22caeb1c0a
commit 4d9efaf3b0
3 changed files with 6 additions and 3 deletions

View File

@ -1006,6 +1006,9 @@ Release 2.8.0 - UNRELEASED
HADOOP-7161. Remove unnecessary oro package from dependency management
section. (Sean Busbey via aajisaka)
HADOOP-12659. Incorrect usage of config parameters in token manager of
KMS. (Mingliang Liu via xyao)
Release 2.7.3 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -141,7 +141,7 @@ public abstract class ZKDelegationTokenSecretManager<TokenIdent extends Abstract
conf.getLong(DelegationTokenManager.MAX_LIFETIME,
DelegationTokenManager.MAX_LIFETIME_DEFAULT) * 1000,
conf.getLong(DelegationTokenManager.RENEW_INTERVAL,
DelegationTokenManager.RENEW_INTERVAL_DEFAULT * 1000),
DelegationTokenManager.RENEW_INTERVAL_DEFAULT) * 1000,
conf.getLong(DelegationTokenManager.REMOVAL_SCAN_INTERVAL,
DelegationTokenManager.REMOVAL_SCAN_INTERVAL_DEFAULT) * 1000);
shutdownTimeout = conf.getLong(ZK_DTSM_ZK_SHUTDOWN_TIMEOUT,

View File

@ -68,8 +68,8 @@ public class DelegationTokenManager {
super(conf.getLong(UPDATE_INTERVAL, UPDATE_INTERVAL_DEFAULT) * 1000,
conf.getLong(MAX_LIFETIME, MAX_LIFETIME_DEFAULT) * 1000,
conf.getLong(RENEW_INTERVAL, RENEW_INTERVAL_DEFAULT) * 1000,
conf.getLong(REMOVAL_SCAN_INTERVAL,
REMOVAL_SCAN_INTERVAL_DEFAULT * 1000));
conf.getLong(REMOVAL_SCAN_INTERVAL, REMOVAL_SCAN_INTERVAL_DEFAULT)
* 1000);
this.tokenKind = tokenKind;
}