You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2017/11/07 05:26:00 UTC
[jira] [Resolved] (HBASE-19198) TestIPv6NIOServerSocketChannel
fails; unable to bind
[ https://issues.apache.org/jira/browse/HBASE-19198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack resolved HBASE-19198.
---------------------------
Resolution: Fixed
Fix Version/s: 2.0.0-beta-1
1.2.7
1.3.2
1.4.0
Pushed below to 1.2+
commit d4e973d2dea272e8e156adec52a537ac5de3ff4e
Author: Michael Stack <st...@duboce.net>
Date: Mon Nov 6 21:19:51 2017 -0800
HBASE-19198 TestIPv6NIOServerSocketChannel fails; unable to bind
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);
}
> TestIPv6NIOServerSocketChannel fails; unable to bind
> ----------------------------------------------------
>
> Key: HBASE-19198
> URL: https://issues.apache.org/jira/browse/HBASE-19198
> Project: HBase
> Issue Type: Bug
> Components: test
> Affects Versions: 2.0.0-beta-1
> Reporter: stack
> Assignee: stack
> Priority: Minor
> Fix For: 1.4.0, 1.3.2, 1.2.7, 2.0.0-beta-1
>
>
> This test always fails on some hardware I have here abouts.
> The test is sort of odd in that it asks to resolve 'localhost'. In my case, I get back two addresses: 127.0.0.1 and then a nonsense one, 205.127.0.0 which looks like a managled address.
> I've tried to figure how resolve is broke on this machine but configs look good and dig/host using 'localhost' fails because it ain't an address to resolve.
> Given latter, I'm changing the test to use getLocalHost which is what it is trying to look up....
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)