You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Luke Lu (JIRA)" <ji...@apache.org> on 2010/05/04 02:35:56 UTC

[jira] Created: (HADOOP-6747) TestNetUtils fails on Mac OS X

TestNetUtils fails on Mac OS X
------------------------------

                 Key: HADOOP-6747
                 URL: https://issues.apache.org/jira/browse/HADOOP-6747
             Project: Hadoop Common
          Issue Type: Bug
    Affects Versions: 0.22.0
         Environment: Mac OS 10.5.8 (Leopard)
            Reporter: Luke Lu
             Fix For: 0.22.0


TestNetUtils fails consistently after HADOOP-6722 on Mac OS X Leopard 10.5.8:

{{
------------- Standard Error -----------------
local address: /127.0.0.1
local port: 64991
------------- ---------------- ---------------

Testcase: testAvoidLoopbackTcpSockets took 0.421 sec
        Caused an ERROR
Invalid argument
java.net.SocketException: Invalid argument
        at sun.nio.ch.Net.connect(Native Method)
        at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
        at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)
        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:369)
        at org.apache.hadoop.net.TestNetUtils.testAvoidLoopbackTcpSockets(TestNetUtils.java:46)
}}

Although TCP spec seems to allow it, at least one implementation disallows this corner case. 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6747) TestNetUtils fails on Mac OS X

Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Todd Lipcon updated HADOOP-6747:
--------------------------------

    Attachment: hadoop-6747.txt

Hi Luke. Does this attached patch fix the issue on your OSX box?

> TestNetUtils fails on Mac OS X
> ------------------------------
>
>                 Key: HADOOP-6747
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6747
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.22.0
>         Environment: Mac OS 10.5.8 (Leopard)
>            Reporter: Luke Lu
>             Fix For: 0.22.0
>
>         Attachments: hadoop-6747-trunk-v1.patch, hadoop-6747.txt
>
>
> TestNetUtils fails consistently after HADOOP-6722 on Mac OS X Leopard 10.5.8:
> {noformat}
> ------------- Standard Error -----------------
> local address: /127.0.0.1
> local port: 64991
> ------------- ---------------- ---------------
> Testcase: testAvoidLoopbackTcpSockets took 0.421 sec
>         Caused an ERROR
> Invalid argument
> java.net.SocketException: Invalid argument
>         at sun.nio.ch.Net.connect(Native Method)
>         at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
>         at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)
>         at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:369)
>         at org.apache.hadoop.net.TestNetUtils.testAvoidLoopbackTcpSockets(TestNetUtils.java:46)
> {noformat}
> Although TCP spec seems to allow it, at least one implementation disallows this corner case. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6747) TestNetUtils fails on Mac OS X

Posted by "Jakob Homan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jakob Homan updated HADOOP-6747:
--------------------------------

          Status: Resolved  (was: Patch Available)
    Hadoop Flags: [Reviewed]
        Assignee: Todd Lipcon
      Resolution: Fixed

+1
I've committed this.  I went with Todd's patch because it included a bit of explanation as to why this case was being handled (and despite ending with .txt, which isn't helpful for large patches).

Thank you Todd.  Resolving as fixed.

> TestNetUtils fails on Mac OS X
> ------------------------------
>
>                 Key: HADOOP-6747
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6747
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.22.0
>         Environment: Mac OS 10.5.8 (Leopard)
>            Reporter: Luke Lu
>            Assignee: Todd Lipcon
>             Fix For: 0.22.0
>
>         Attachments: hadoop-6747-trunk-v1.patch, hadoop-6747.txt
>
>
> TestNetUtils fails consistently after HADOOP-6722 on Mac OS X Leopard 10.5.8:
> {noformat}
> ------------- Standard Error -----------------
> local address: /127.0.0.1
> local port: 64991
> ------------- ---------------- ---------------
> Testcase: testAvoidLoopbackTcpSockets took 0.421 sec
>         Caused an ERROR
> Invalid argument
> java.net.SocketException: Invalid argument
>         at sun.nio.ch.Net.connect(Native Method)
>         at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
>         at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)
>         at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:369)
>         at org.apache.hadoop.net.TestNetUtils.testAvoidLoopbackTcpSockets(TestNetUtils.java:46)
> {noformat}
> Although TCP spec seems to allow it, at least one implementation disallows this corner case. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-6747) TestNetUtils fails on Mac OS X

Posted by "Steve Loughran (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12863743#action_12863743 ] 

Steve Loughran commented on HADOOP-6747:
----------------------------------------

+ 0 on this; I think its important for the tests to pass, it just irritates me whenever the underlying OS fails differently from other ones and you have to look for string messages to find the cause -very, very brittle. Might be best to say "this is macos and we see invalid argument" to lock down the platforms looked at, though that is equally painful.

> TestNetUtils fails on Mac OS X
> ------------------------------
>
>                 Key: HADOOP-6747
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6747
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.22.0
>         Environment: Mac OS 10.5.8 (Leopard)
>            Reporter: Luke Lu
>             Fix For: 0.22.0
>
>         Attachments: hadoop-6747-trunk-v1.patch, hadoop-6747.txt
>
>
> TestNetUtils fails consistently after HADOOP-6722 on Mac OS X Leopard 10.5.8:
> {noformat}
> ------------- Standard Error -----------------
> local address: /127.0.0.1
> local port: 64991
> ------------- ---------------- ---------------
> Testcase: testAvoidLoopbackTcpSockets took 0.421 sec
>         Caused an ERROR
> Invalid argument
> java.net.SocketException: Invalid argument
>         at sun.nio.ch.Net.connect(Native Method)
>         at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
>         at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)
>         at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:369)
>         at org.apache.hadoop.net.TestNetUtils.testAvoidLoopbackTcpSockets(TestNetUtils.java:46)
> {noformat}
> Although TCP spec seems to allow it, at least one implementation disallows this corner case. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6747) TestNetUtils fails on Mac OS X

Posted by "Luke Lu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luke Lu updated HADOOP-6747:
----------------------------

    Description: 
TestNetUtils fails consistently after HADOOP-6722 on Mac OS X Leopard 10.5.8:

{{{
------------- Standard Error -----------------
local address: /127.0.0.1
local port: 64991
------------- ---------------- ---------------

Testcase: testAvoidLoopbackTcpSockets took 0.421 sec
        Caused an ERROR
Invalid argument
java.net.SocketException: Invalid argument
        at sun.nio.ch.Net.connect(Native Method)
        at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
        at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)
        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:369)
        at org.apache.hadoop.net.TestNetUtils.testAvoidLoopbackTcpSockets(TestNetUtils.java:46)
}}}

Although TCP spec seems to allow it, at least one implementation disallows this corner case. 


  was:
TestNetUtils fails consistently after HADOOP-6722 on Mac OS X Leopard 10.5.8:

{{
------------- Standard Error -----------------
local address: /127.0.0.1
local port: 64991
------------- ---------------- ---------------

Testcase: testAvoidLoopbackTcpSockets took 0.421 sec
        Caused an ERROR
Invalid argument
java.net.SocketException: Invalid argument
        at sun.nio.ch.Net.connect(Native Method)
        at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
        at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)
        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:369)
        at org.apache.hadoop.net.TestNetUtils.testAvoidLoopbackTcpSockets(TestNetUtils.java:46)
}}

Although TCP spec seems to allow it, at least one implementation disallows this corner case. 



> TestNetUtils fails on Mac OS X
> ------------------------------
>
>                 Key: HADOOP-6747
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6747
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.22.0
>         Environment: Mac OS 10.5.8 (Leopard)
>            Reporter: Luke Lu
>             Fix For: 0.22.0
>
>
> TestNetUtils fails consistently after HADOOP-6722 on Mac OS X Leopard 10.5.8:
> {{{
> ------------- Standard Error -----------------
> local address: /127.0.0.1
> local port: 64991
> ------------- ---------------- ---------------
> Testcase: testAvoidLoopbackTcpSockets took 0.421 sec
>         Caused an ERROR
> Invalid argument
> java.net.SocketException: Invalid argument
>         at sun.nio.ch.Net.connect(Native Method)
>         at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
>         at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)
>         at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:369)
>         at org.apache.hadoop.net.TestNetUtils.testAvoidLoopbackTcpSockets(TestNetUtils.java:46)
> }}}
> Although TCP spec seems to allow it, at least one implementation disallows this corner case. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HADOOP-6747) TestNetUtils fails on Mac OS X

Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Todd Lipcon reassigned HADOOP-6747:
-----------------------------------

    Assignee: Todd Lipcon

> TestNetUtils fails on Mac OS X
> ------------------------------
>
>                 Key: HADOOP-6747
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6747
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.22.0
>         Environment: Mac OS 10.5.8 (Leopard)
>            Reporter: Luke Lu
>            Assignee: Todd Lipcon
>             Fix For: 0.22.0
>
>
> TestNetUtils fails consistently after HADOOP-6722 on Mac OS X Leopard 10.5.8:
> {{{
> ------------- Standard Error -----------------
> local address: /127.0.0.1
> local port: 64991
> ------------- ---------------- ---------------
> Testcase: testAvoidLoopbackTcpSockets took 0.421 sec
>         Caused an ERROR
> Invalid argument
> java.net.SocketException: Invalid argument
>         at sun.nio.ch.Net.connect(Native Method)
>         at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
>         at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)
>         at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:369)
>         at org.apache.hadoop.net.TestNetUtils.testAvoidLoopbackTcpSockets(TestNetUtils.java:46)
> }}}
> Although TCP spec seems to allow it, at least one implementation disallows this corner case. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-6747) TestNetUtils fails on Mac OS X

Posted by "Luke Lu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12863587#action_12863587 ] 

Luke Lu commented on HADOOP-6747:
---------------------------------

Looks like we attach pretty much the same patch at the same time :)

> TestNetUtils fails on Mac OS X
> ------------------------------
>
>                 Key: HADOOP-6747
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6747
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.22.0
>         Environment: Mac OS 10.5.8 (Leopard)
>            Reporter: Luke Lu
>             Fix For: 0.22.0
>
>         Attachments: hadoop-6747-trunk-v1.patch, hadoop-6747.txt
>
>
> TestNetUtils fails consistently after HADOOP-6722 on Mac OS X Leopard 10.5.8:
> {noformat}
> ------------- Standard Error -----------------
> local address: /127.0.0.1
> local port: 64991
> ------------- ---------------- ---------------
> Testcase: testAvoidLoopbackTcpSockets took 0.421 sec
>         Caused an ERROR
> Invalid argument
> java.net.SocketException: Invalid argument
>         at sun.nio.ch.Net.connect(Native Method)
>         at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
>         at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)
>         at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:369)
>         at org.apache.hadoop.net.TestNetUtils.testAvoidLoopbackTcpSockets(TestNetUtils.java:46)
> {noformat}
> Although TCP spec seems to allow it, at least one implementation disallows this corner case. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-6747) TestNetUtils fails on Mac OS X

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12873272#action_12873272 ] 

Hudson commented on HADOOP-6747:
--------------------------------

Integrated in Hadoop-Common-trunk #350 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-Common-trunk/350/])
    HADOOP-6747. TestNetUtils fails on Mac OS X (Todd Lipcon via jghoman)


> TestNetUtils fails on Mac OS X
> ------------------------------
>
>                 Key: HADOOP-6747
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6747
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.22.0
>         Environment: Mac OS 10.5.8 (Leopard)
>            Reporter: Luke Lu
>            Assignee: Todd Lipcon
>             Fix For: 0.22.0
>
>         Attachments: hadoop-6747-trunk-v1.patch, hadoop-6747.txt
>
>
> TestNetUtils fails consistently after HADOOP-6722 on Mac OS X Leopard 10.5.8:
> {noformat}
> ------------- Standard Error -----------------
> local address: /127.0.0.1
> local port: 64991
> ------------- ---------------- ---------------
> Testcase: testAvoidLoopbackTcpSockets took 0.421 sec
>         Caused an ERROR
> Invalid argument
> java.net.SocketException: Invalid argument
>         at sun.nio.ch.Net.connect(Native Method)
>         at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
>         at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)
>         at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:369)
>         at org.apache.hadoop.net.TestNetUtils.testAvoidLoopbackTcpSockets(TestNetUtils.java:46)
> {noformat}
> Although TCP spec seems to allow it, at least one implementation disallows this corner case. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6747) TestNetUtils fails on Mac OS X

Posted by "Luke Lu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luke Lu updated HADOOP-6747:
----------------------------

    Attachment: hadoop-6747-trunk-v1.patch

Fixing the test for this case seems to make more sense here.

> TestNetUtils fails on Mac OS X
> ------------------------------
>
>                 Key: HADOOP-6747
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6747
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.22.0
>         Environment: Mac OS 10.5.8 (Leopard)
>            Reporter: Luke Lu
>             Fix For: 0.22.0
>
>         Attachments: hadoop-6747-trunk-v1.patch, hadoop-6747.txt
>
>
> TestNetUtils fails consistently after HADOOP-6722 on Mac OS X Leopard 10.5.8:
> {noformat}
> ------------- Standard Error -----------------
> local address: /127.0.0.1
> local port: 64991
> ------------- ---------------- ---------------
> Testcase: testAvoidLoopbackTcpSockets took 0.421 sec
>         Caused an ERROR
> Invalid argument
> java.net.SocketException: Invalid argument
>         at sun.nio.ch.Net.connect(Native Method)
>         at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
>         at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)
>         at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:369)
>         at org.apache.hadoop.net.TestNetUtils.testAvoidLoopbackTcpSockets(TestNetUtils.java:46)
> {noformat}
> Although TCP spec seems to allow it, at least one implementation disallows this corner case. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-6747) TestNetUtils fails on Mac OS X

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12863596#action_12863596 ] 

Hadoop QA commented on HADOOP-6747:
-----------------------------------

+1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12443532/hadoop-6747.txt
  against trunk revision 940527.

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 3 new or modified tests.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 findbugs.  The patch does not introduce any new Findbugs warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    +1 core tests.  The patch passed core unit tests.

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/496/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/496/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/496/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/496/console

This message is automatically generated.

> TestNetUtils fails on Mac OS X
> ------------------------------
>
>                 Key: HADOOP-6747
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6747
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.22.0
>         Environment: Mac OS 10.5.8 (Leopard)
>            Reporter: Luke Lu
>             Fix For: 0.22.0
>
>         Attachments: hadoop-6747-trunk-v1.patch, hadoop-6747.txt
>
>
> TestNetUtils fails consistently after HADOOP-6722 on Mac OS X Leopard 10.5.8:
> {noformat}
> ------------- Standard Error -----------------
> local address: /127.0.0.1
> local port: 64991
> ------------- ---------------- ---------------
> Testcase: testAvoidLoopbackTcpSockets took 0.421 sec
>         Caused an ERROR
> Invalid argument
> java.net.SocketException: Invalid argument
>         at sun.nio.ch.Net.connect(Native Method)
>         at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
>         at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)
>         at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:369)
>         at org.apache.hadoop.net.TestNetUtils.testAvoidLoopbackTcpSockets(TestNetUtils.java:46)
> {noformat}
> Although TCP spec seems to allow it, at least one implementation disallows this corner case. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6747) TestNetUtils fails on Mac OS X

Posted by "Luke Lu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luke Lu updated HADOOP-6747:
----------------------------

       Assignee:     (was: Todd Lipcon)
    Description: 
TestNetUtils fails consistently after HADOOP-6722 on Mac OS X Leopard 10.5.8:

{noformat}
------------- Standard Error -----------------
local address: /127.0.0.1
local port: 64991
------------- ---------------- ---------------

Testcase: testAvoidLoopbackTcpSockets took 0.421 sec
        Caused an ERROR
Invalid argument
java.net.SocketException: Invalid argument
        at sun.nio.ch.Net.connect(Native Method)
        at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
        at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)
        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:369)
        at org.apache.hadoop.net.TestNetUtils.testAvoidLoopbackTcpSockets(TestNetUtils.java:46)
{noformat}

Although TCP spec seems to allow it, at least one implementation disallows this corner case. 


  was:
TestNetUtils fails consistently after HADOOP-6722 on Mac OS X Leopard 10.5.8:

{{{
------------- Standard Error -----------------
local address: /127.0.0.1
local port: 64991
------------- ---------------- ---------------

Testcase: testAvoidLoopbackTcpSockets took 0.421 sec
        Caused an ERROR
Invalid argument
java.net.SocketException: Invalid argument
        at sun.nio.ch.Net.connect(Native Method)
        at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
        at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)
        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:369)
        at org.apache.hadoop.net.TestNetUtils.testAvoidLoopbackTcpSockets(TestNetUtils.java:46)
}}}

Although TCP spec seems to allow it, at least one implementation disallows this corner case. 



> TestNetUtils fails on Mac OS X
> ------------------------------
>
>                 Key: HADOOP-6747
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6747
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.22.0
>         Environment: Mac OS 10.5.8 (Leopard)
>            Reporter: Luke Lu
>             Fix For: 0.22.0
>
>
> TestNetUtils fails consistently after HADOOP-6722 on Mac OS X Leopard 10.5.8:
> {noformat}
> ------------- Standard Error -----------------
> local address: /127.0.0.1
> local port: 64991
> ------------- ---------------- ---------------
> Testcase: testAvoidLoopbackTcpSockets took 0.421 sec
>         Caused an ERROR
> Invalid argument
> java.net.SocketException: Invalid argument
>         at sun.nio.ch.Net.connect(Native Method)
>         at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
>         at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)
>         at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:369)
>         at org.apache.hadoop.net.TestNetUtils.testAvoidLoopbackTcpSockets(TestNetUtils.java:46)
> {noformat}
> Although TCP spec seems to allow it, at least one implementation disallows this corner case. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-6747) TestNetUtils fails on Mac OS X

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12873223#action_12873223 ] 

Hudson commented on HADOOP-6747:
--------------------------------

Integrated in Hadoop-Common-trunk-Commit #271 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-Common-trunk-Commit/271/])
    HADOOP-6747. TestNetUtils fails on Mac OS X (Todd Lipcon via jghoman)


> TestNetUtils fails on Mac OS X
> ------------------------------
>
>                 Key: HADOOP-6747
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6747
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.22.0
>         Environment: Mac OS 10.5.8 (Leopard)
>            Reporter: Luke Lu
>            Assignee: Todd Lipcon
>             Fix For: 0.22.0
>
>         Attachments: hadoop-6747-trunk-v1.patch, hadoop-6747.txt
>
>
> TestNetUtils fails consistently after HADOOP-6722 on Mac OS X Leopard 10.5.8:
> {noformat}
> ------------- Standard Error -----------------
> local address: /127.0.0.1
> local port: 64991
> ------------- ---------------- ---------------
> Testcase: testAvoidLoopbackTcpSockets took 0.421 sec
>         Caused an ERROR
> Invalid argument
> java.net.SocketException: Invalid argument
>         at sun.nio.ch.Net.connect(Native Method)
>         at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
>         at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)
>         at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:369)
>         at org.apache.hadoop.net.TestNetUtils.testAvoidLoopbackTcpSockets(TestNetUtils.java:46)
> {noformat}
> Although TCP spec seems to allow it, at least one implementation disallows this corner case. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6747) TestNetUtils fails on Mac OS X

Posted by "Luke Lu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luke Lu updated HADOOP-6747:
----------------------------

    Status: Patch Available  (was: Open)

> TestNetUtils fails on Mac OS X
> ------------------------------
>
>                 Key: HADOOP-6747
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6747
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.22.0
>         Environment: Mac OS 10.5.8 (Leopard)
>            Reporter: Luke Lu
>             Fix For: 0.22.0
>
>         Attachments: hadoop-6747-trunk-v1.patch, hadoop-6747.txt
>
>
> TestNetUtils fails consistently after HADOOP-6722 on Mac OS X Leopard 10.5.8:
> {noformat}
> ------------- Standard Error -----------------
> local address: /127.0.0.1
> local port: 64991
> ------------- ---------------- ---------------
> Testcase: testAvoidLoopbackTcpSockets took 0.421 sec
>         Caused an ERROR
> Invalid argument
> java.net.SocketException: Invalid argument
>         at sun.nio.ch.Net.connect(Native Method)
>         at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
>         at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)
>         at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:369)
>         at org.apache.hadoop.net.TestNetUtils.testAvoidLoopbackTcpSockets(TestNetUtils.java:46)
> {noformat}
> Although TCP spec seems to allow it, at least one implementation disallows this corner case. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.