Yuan Luo created YARN-12045:
-------------------------------

             Summary: Close MockRM fixtures in placement constraint tests
                 Key: YARN-12045
                 URL: https://issues.apache.org/jira/browse/YARN-12045
             Project: Hadoop YARN
          Issue Type: Bug
          Components: resourcemanager
            Reporter: Yuan Luo
            Assignee: Yuan Luo


TestAllocationTagsManager and TestPlacementConstraintsUtil start a MockRM in 
their setup methods, but retain it only in a local variable. Neither class 
stops the ResourceManager after each test.

Keep each MockRM on the test instance and stop it from an @AfterEach method so 
test-owned services are cleaned up after successful tests and assertion 
failures. Both classes share the same lifecycle defect in the same package. 
Existing placement assertions, test timeouts, and production code remain 
unchanged.

Source inspected on Apache Hadoop trunk 
f842297570243587f0ed7a81ebe80bb178098bca. Compilation and focused tests are in 
progress; no passing test or CI result is claimed yet.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to