Yuan Luo created YARN-12044:
-------------------------------
Summary: Close the ZooKeeper cluster in TestLeaderElectorService
teardown
Key: YARN-12044
URL: https://issues.apache.org/jira/browse/YARN-12044
Project: Hadoop YARN
Issue Type: Bug
Components: resourcemanager
Reporter: Yuan Luo
Assignee: Yuan Luo
TestLeaderElectorService.setUp() starts a three-server TestingCluster for every
test, but tearDown() only stops the two ResourceManagers. The test-owned
ZooKeeper cluster is not closed.
Close the TestingCluster in a finally block after stopping the
ResourceManagers, so ZooKeeper cleanup is attempted even if ResourceManager
shutdown fails. This is a test-only resource lifecycle fix; the HA assertions
and production code are unchanged.
Source inspected on Apache Hadoop trunk
f842297570243587f0ed7a81ebe80bb178098bca. Compilation and focused test
execution are pending; no passing test or CI result is claimed.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]