Skip to content

Commit 1cc1b35

Browse files
author
slfan1989
committed
YARN-11253. Fix CheckStyle.
1 parent 70abbaa commit 1cc1b35

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/yarn-default.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,11 @@
10791079

10801080
<property>
10811081
<description>
1082-
RM delegation token remove-scan interval in ms
1082+
This configuration is used for
1083+
how often the tokens are scanned for expired tokens in milliseconds.
1084+
the background thread(delegation token remover thread)
1085+
will delete expired tokens after the configured time.
1086+
the default value is 1h.
10831087
</description>
10841088
<name>yarn.resourcemanager.delegation.token.remove-scan-interval</name>
10851089
<value>1h</value>

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/RMSecretManagerService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ protected RMDelegationTokenSecretManager createRMDelegationTokenSecretManager(
138138
YarnConfiguration.RM_DELEGATION_TOKEN_RENEW_INTERVAL_DEFAULT);
139139
long removeScanInterval =
140140
conf.getTimeDuration(YarnConfiguration.RM_DELEGATION_TOKEN_REMOVE_SCAN_INTERVAL_KEY,
141-
YarnConfiguration.RM_DELEGATION_TOKEN_REMOVE_SCAN_INTERVAL_DEFAULT,
142-
TimeUnit.MILLISECONDS);
141+
YarnConfiguration.RM_DELEGATION_TOKEN_REMOVE_SCAN_INTERVAL_DEFAULT,
142+
TimeUnit.MILLISECONDS);
143143

144144
return new RMDelegationTokenSecretManager(secretKeyInterval,
145145
tokenMaxLifetime, tokenRenewInterval, removeScanInterval, rmContext);

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestClientRMTokens.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ public void testDelegationToken() throws Exception {
127127
long renewInterval = 10000l;
128128
long delegationTokenRemoverScanInterval =
129129
conf.getTimeDuration(YarnConfiguration.RM_DELEGATION_TOKEN_REMOVE_SCAN_INTERVAL_KEY,
130-
YarnConfiguration.RM_DELEGATION_TOKEN_REMOVE_SCAN_INTERVAL_DEFAULT,
131-
TimeUnit.MILLISECONDS);
130+
YarnConfiguration.RM_DELEGATION_TOKEN_REMOVE_SCAN_INTERVAL_DEFAULT,
131+
TimeUnit.MILLISECONDS);
132132

133133
RMDelegationTokenSecretManager rmDtSecretManager = createRMDelegationTokenSecretManager(
134134
initialInterval, maxLifetime, renewInterval, delegationTokenRemoverScanInterval);

0 commit comments

Comments
 (0)