dajiaohuang opened a new pull request, #8873:
URL: https://github.com/apache/hadoop/pull/8873

   ## Summary
   
   When ZKFC fails to bind its RPC server during startup, `rpcServer` remains 
null. The `finally` block then dereferences it and masks the original bind 
exception. Guard `stopAndJoin()` until the server has been constructed, while 
preserving the remaining cleanup.
   
   Adds a regression test that holds a loopback port and verifies the original 
`BindException` is propagated.
   
   ## Validation
   
   - Focused Surefire report for 
`TestZKFailoverController#testBindExceptionIsNotMaskedWhenZkfcRpcServerFailsToStart`:
 1 test, 0 failures, 0 errors, 0 skipped.
   - The encompassing Maven invocation exited 1 after the test because Hadoop's 
`common-test-bats-driver` could not launch `/bin/bash` on this Windows host. 
This is not a passing Maven build; the full suite was not run.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to