You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Shilun Fan (Jira)" <ji...@apache.org> on 2026/10/06 10:51:00 UTC

[jira] [Created] (HADOOP-20009) Ensure token manager cleanup in testNodesLoadedAfterRestart

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: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org