Shilun Fan created HADOOP-20009:
-----------------------------------
Summary: Ensure token manager cleanup in
testNodesLoadedAfterRestart
Key: HADOOP-20009
URL: https://issues.apache.org/jira/browse/HADOOP-20009
Project: Hadoop Common
Issue Type: Bug
Components: test
Affects Versions: 3.5.1, 3.6.0
Reporter: Shilun Fan
Assignee: Shilun Fan
TestZKDelegationTokenSecretManager.testNodesLoadedAfterRestart() destroys the
original DelegationTokenManager before creating a replacement,
but does not destroy the replacement when the test finishes. Cleanup is also
not guaranteed if initialization or an assertion fails.
The teardown then closes ZooKeeper while the ExpiredTokenRemover thread may
still be running.
The thread can encounter ConnectionLossException while updating the shared key
ID counter and call Runtime.exit(-1),
terminating the Surefire JVM with exit code 255.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]