HADOOP-12659. Incorrect usage of config parameters in token manager of KMS. Contributed by Mingliang Liu.
This commit is contained in:
parent
b4a05c1fd5
commit
f3427d3766
|
@ -1639,6 +1639,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
HADOOP-7161. Remove unnecessary oro package from dependency management
|
HADOOP-7161. Remove unnecessary oro package from dependency management
|
||||||
section. (Sean Busbey via aajisaka)
|
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
|
Release 2.7.3 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -141,7 +141,7 @@ public abstract class ZKDelegationTokenSecretManager<TokenIdent extends Abstract
|
||||||
conf.getLong(DelegationTokenManager.MAX_LIFETIME,
|
conf.getLong(DelegationTokenManager.MAX_LIFETIME,
|
||||||
DelegationTokenManager.MAX_LIFETIME_DEFAULT) * 1000,
|
DelegationTokenManager.MAX_LIFETIME_DEFAULT) * 1000,
|
||||||
conf.getLong(DelegationTokenManager.RENEW_INTERVAL,
|
conf.getLong(DelegationTokenManager.RENEW_INTERVAL,
|
||||||
DelegationTokenManager.RENEW_INTERVAL_DEFAULT * 1000),
|
DelegationTokenManager.RENEW_INTERVAL_DEFAULT) * 1000,
|
||||||
conf.getLong(DelegationTokenManager.REMOVAL_SCAN_INTERVAL,
|
conf.getLong(DelegationTokenManager.REMOVAL_SCAN_INTERVAL,
|
||||||
DelegationTokenManager.REMOVAL_SCAN_INTERVAL_DEFAULT) * 1000);
|
DelegationTokenManager.REMOVAL_SCAN_INTERVAL_DEFAULT) * 1000);
|
||||||
shutdownTimeout = conf.getLong(ZK_DTSM_ZK_SHUTDOWN_TIMEOUT,
|
shutdownTimeout = conf.getLong(ZK_DTSM_ZK_SHUTDOWN_TIMEOUT,
|
||||||
|
|
|
@ -68,8 +68,8 @@ public class DelegationTokenManager {
|
||||||
super(conf.getLong(UPDATE_INTERVAL, UPDATE_INTERVAL_DEFAULT) * 1000,
|
super(conf.getLong(UPDATE_INTERVAL, UPDATE_INTERVAL_DEFAULT) * 1000,
|
||||||
conf.getLong(MAX_LIFETIME, MAX_LIFETIME_DEFAULT) * 1000,
|
conf.getLong(MAX_LIFETIME, MAX_LIFETIME_DEFAULT) * 1000,
|
||||||
conf.getLong(RENEW_INTERVAL, RENEW_INTERVAL_DEFAULT) * 1000,
|
conf.getLong(RENEW_INTERVAL, RENEW_INTERVAL_DEFAULT) * 1000,
|
||||||
conf.getLong(REMOVAL_SCAN_INTERVAL,
|
conf.getLong(REMOVAL_SCAN_INTERVAL, REMOVAL_SCAN_INTERVAL_DEFAULT)
|
||||||
REMOVAL_SCAN_INTERVAL_DEFAULT * 1000));
|
* 1000);
|
||||||
this.tokenKind = tokenKind;
|
this.tokenKind = tokenKind;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue