Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.4.0, 3.3.4
-
Reviewed
Description
When reading the code, I found the case of hard coding, I think the parameters should be abstracted into the configuration.
org.apache.hadoop.yarn.server.resourcemanager.RMSecretManagerService#
createRMDelegationTokenSecretManager
protected RMDelegationTokenSecretManager createRMDelegationTokenSecretManager(Configuration conf, RMContext rmContext) { // ..... 3600000 This hard code should be extracted return new RMDelegationTokenSecretManager(secretKeyInterval, tokenMaxLifetime, tokenRenewInterval, 3600000, rmContext); }
Attachments
Issue Links
- links to