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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]