[ 
https://issues.apache.org/jira/browse/YARN-12044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ayush Saxena resolved YARN-12044.
---------------------------------
    Fix Version/s: 3.6.0
     Hadoop Flags: Reviewed
       Resolution: Fixed

> 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
>             Fix For: 3.6.0
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to