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:21:50 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 a2ae58f6e -> ca68d7786


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/ca68d778
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/ca68d778
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/ca68d778

Branch: refs/heads/branch-1
Commit: ca68d77862be05500e9fd3d933f5888a5a7512c9
Parents: a2ae58f
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:21:34 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/ca68d778/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 6b0b538..3dc2871 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
@@ -48,7 +48,6 @@ import org.junit.rules.TestRule;
  */
 @Category(SmallTests.class)
 public class TestIPv6NIOServerSocketChannel {
-
   private static final Log LOG = LogFactory.getLog(TestIPv6NIOServerSocketChannel.class);
 
   @Rule
@@ -68,6 +67,7 @@ public class TestIPv6NIOServerSocketChannel {
         break;
       } catch (BindException ex) {
         //continue
+        LOG.info("Failed on " + addr + ", inedAddr=" + inetAddr, ex);
       } finally {
         if (serverSocket != null) {
           serverSocket.close();
@@ -150,9 +150,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