hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-19198 TestIPv6NIOServerSocketChannel fails; unable to bind
Date Tue, 07 Nov 2017 05:24:13 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.2 498bcba09 -> 273588336


HBASE-19198 TestIPv6NIOServerSocketChannel fails; unable to bind


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/27358833
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/27358833
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/27358833

Branch: refs/heads/branch-1.2
Commit: 2735883361e488a57f70ac5d65073528a5b474bb
Parents: 498bcba
Author: Michael Stack <stack@duboce.net>
Authored: Mon Nov 6 21:19:51 2017 -0800
Committer: Michael Stack <stack@duboce.net>
Committed: Mon Nov 6 21:23:50 2017 -0800

----------------------------------------------------------------------
 .../apache/hadoop/hbase/TestIPv6NIOServerSocketChannel.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/27358833/hbase-server/src/test/java/org/apache/hadoop/hbase/TestIPv6NIOServerSocketChannel.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/TestIPv6NIOServerSocketChannel.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/TestIPv6NIOServerSocketChannel.java
index c9ab40d..7b721cf 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/TestIPv6NIOServerSocketChannel.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/TestIPv6NIOServerSocketChannel.java
@@ -47,7 +47,6 @@ import org.junit.rules.TestRule;
  */
 @Category(SmallTests.class)
 public class TestIPv6NIOServerSocketChannel {
-
   private static final Log LOG = LogFactory.getLog(TestIPv6NIOServerSocketChannel.class);
 
   @Rule
@@ -67,6 +66,7 @@ public class TestIPv6NIOServerSocketChannel {
         break;
       } catch (BindException ex) {
         //continue
+        LOG.info("Failed on " + addr + ", inedAddr=" + inetAddr, ex);
       } finally {
         if (serverSocket != null) {
           serverSocket.close();
@@ -149,9 +149,9 @@ public class TestIPv6NIOServerSocketChannel {
    */
   @Test
   public void testServerSocketFromLocalhostResolution() throws IOException {
-    InetAddress[] addrs = InetAddress.getAllByName("localhost");
+    InetAddress[] addrs = {InetAddress.getLocalHost()};
     for (InetAddress addr : addrs) {
-      LOG.info("resolved localhost as:" + addr);
+      LOG.info("Resolved localhost as: " + addr);
       bindServerSocket(addr);
       bindNIOServerSocket(addr);
     }


Mime
View raw message