[
https://issues.apache.org/jira/browse/HADOOP-19966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18105618#comment-18105618
]
ASF GitHub Bot commented on HADOOP-19966:
-----------------------------------------
pan3793 commented on code in PR #8688:
URL: https://github.com/apache/hadoop/pull/8688#discussion_r3804574463
##########
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/token/delegation/TestZKDelegationTokenSecretManager.java:
##########
@@ -551,22 +558,27 @@ public void testCreatingParentContainersIfNeeded() throws
Exception {
.build();
curatorFramework.start();
ZKDelegationTokenSecretManager.setCurator(curatorFramework);
- DelegationTokenManager tm1 = new DelegationTokenManager(conf, new
Text("foo"));
+ try {
+ DelegationTokenManager tm1 = new DelegationTokenManager(conf, new
Text("foo"));
- // When the init method is called,
- // the ZKDelegationTokenSecretManager#startThread method will be called,
- // and the creatingParentContainersIfNeeded will be called to create the
nameSpace.
- tm1.init();
+ // When the init method is called,
+ // the ZKDelegationTokenSecretManager#startThread method will be called,
+ // and the creatingParentContainersIfNeeded will be called to create the
nameSpace.
+ tm1.init();
Review Comment:
Fixed: `destroy()` and executor shutdown/await moved into `finally` in both
tests.
> ZKDelegationTokenSecretManager may fail to load tokens and keys from
> ZooKeeper on startup
> -----------------------------------------------------------------------------------------
>
> Key: HADOOP-19966
> URL: https://issues.apache.org/jira/browse/HADOOP-19966
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Cheng Pan
> Priority: Major
> Labels: pull-request-available
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]