ayushtkn commented on code in PR #8873:
URL: https://github.com/apache/hadoop/pull/8873#discussion_r4398198740


##########
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ha/TestZKFailoverController.java:
##########
@@ -137,6 +139,27 @@ public void testNoZK() throws Exception {
         runFC(svc));
   }
 
+  @Test
+  public void testBindExceptionIsNotMaskedWhenZkfcRpcServerFailsToStart()
+      throws Exception {
+    DummyHAService svc = cluster.getService(1);
+    assertEquals(0, runFC(svc, "-formatZK"));
+
+    try (ServerSocket occupiedSocket = new ServerSocket(0, 1,
+        java.net.InetAddress.getByName("127.0.0.1"))) {

Review Comment:
   import rather than `java.net`



-- 
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