You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Yuan Luo (Jira)" <ji...@apache.org> on 2026/10/27 03:27:00 UTC

[jira] [Created] (YARN-12046) Close ResourceManager and resolver fixtures in TestNodesListManager

Yuan Luo created YARN-12046:
-------------------------------

             Summary: Close ResourceManager and resolver fixtures in TestNodesListManager
                 Key: YARN-12046
                 URL: https://issues.apache.org/jira/browse/YARN-12046
             Project: Hadoop YARN
          Issue Type: Bug
          Components: resourcemanager
            Reporter: Yuan Luo
            Assignee: Yuan Luo


TestNodesListManager creates ResourceManager fixtures and starts cached resolvers without corresponding test cleanup.

Keep the ResourceManagers and cached-resolver fixtures on the test instance. Stop the ResourceManager after each test and close the cached resolver from a finally block, including the resolver used by testCachedResolverWithEvent. This avoids leaving the event-test resolver hidden in a local variable.

This is a test-only lifecycle fix. Existing node-event and resolver assertions remain unchanged, and the process-wide metrics system is not shut down.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org