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 04:10:00 UTC
[jira] [Updated] (YARN-12044) Close ZooKeeper cluster in TestLeaderElectorService
[ https://issues.apache.org/jira/browse/YARN-12044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yuan Luo updated YARN-12044:
----------------------------
Summary: Close ZooKeeper cluster in TestLeaderElectorService (was: Close the ZooKeeper cluster in TestLeaderElectorService teardown)
> Close ZooKeeper cluster in TestLeaderElectorService
> ---------------------------------------------------
>
> 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
> Priority: Minor
> Labels: pull-request-available
>
> h2. Problem
> {{TestLeaderElectorService.setUp()}} starts a three-server {{TestingCluster}} for each test, but {{tearDown()}} stops only the ResourceManagers. The test-owned ZooKeeper cluster is left open.
> h2. Solution
> * Close the cluster in a {{finally}} block after stopping the ResourceManagers, including when ResourceManager shutdown fails.
> * Test-only change; production code, HA assertions, and timeouts are unchanged.
> h2. Validation
> * Local reactor compilation passed with JDK 17 and Maven Wrapper.
> * {{TestLeaderElectorService}}: 6 tests, 0 failures, 0 errors, 0 skipped.
> * Fresh Surefire XML and {{git diff --check}} verified.
> h2. Related PR
> [PR #8874|https://github.com/apache/hadoop/pull/8874]
--
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