Jose Luis López created YARN-11983:
--------------------------------------

             Summary: Shut down leaked mini-cluster instances
                 Key: YARN-11983
                 URL: https://issues.apache.org/jira/browse/YARN-11983
             Project: Hadoop YARN
          Issue Type: Test
          Components: test
            Reporter: Jose Luis López


Part of the mini-cluster leak scan recorded in HDFS-17957, I discovered theses 
in the YARN project:
 
* TestFederationRMFailoverProxyProvider#testProxyProvider shuts its cluster
down only on the happy path, so the cluster leaks exactly when the test
fails.
* TestMiniYarnClusterNodeUtilization holds a cluster in a field with no
teardown in the class or its ancestors.
 
Impact: a leaked cluster keeps threads, heap and ports alive under the
remaining tests of the class, and a failure on the happy-path-only pattern can
cascade into bogus failures of later tests in the same class.
 
The fixes are mechanical - try-with-resources, and a teardown method.
Test-scope only; no production code is touched.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to