Hadoop Common
  1. Hadoop Common
  2. HADOOP-5655

TestMRServerPorts fails on java.net.BindException

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.20.1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Both testTaskTrackerPorts and testJobTrackerPorts failed on the same error message:

      Error Message

      Problem binding to /0.0.0.0:50010 : Address already in use

      Stacktrace

      java.net.BindException: Problem binding to /0.0.0.0:50010 : Address already in use
      at org.apache.hadoop.ipc.Server.bind(Server.java:190)
      at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:310)
      at org.apache.hadoop.hdfs.server.datanode.DataNode.<init>(DataNode.java:221)
      at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:1301)
      at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:1256)
      at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:1264)
      at org.apache.hadoop.hdfs.TestHDFSServerPorts.startDataNode(TestHDFSServerPorts.java:80)
      at org.apache.hadoop.mapred.TestMRServerPorts.testTaskTrackerPorts(TestMRServerPorts.java:160)
      Caused by: java.net.BindException: Address already in use
      at sun.nio.ch.Net.bind(Native Method)
      at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
      at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
      at org.apache.hadoop.ipc.Server.bind(Server.java:188)

      1. 5655.patch
        1 kB
        Devaraj Das

        Activity

        Hide
        steve_l added a comment -

        If a port is still open after a previous test finished, isn't that a bug in the previous test? That it didn't shut down right?

        Show
        steve_l added a comment - If a port is still open after a previous test finished, isn't that a bug in the previous test? That it didn't shut down right?
        Hide
        Hudson added a comment -
        Show
        Hudson added a comment - Integrated in Hadoop-trunk #811 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/811/ )
        Hide
        Hairong Kuang added a comment -

        I've just committed this! Thanks, Devaraj!

        Show
        Hairong Kuang added a comment - I've just committed this! Thanks, Devaraj!
        Hide
        Amar Kamat added a comment -

        Patch looks to fine.

        Show
        Amar Kamat added a comment - Patch looks to fine.
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12405235/5655.patch
        against trunk revision 764287.

        +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 Eclipse classpath. The patch retains Eclipse classpath integrity.

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

        -1 core tests. The patch failed core unit tests.

        -1 contrib tests. The patch failed contrib unit tests.

        Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-vesta.apache.org/187/testReport/
        Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-vesta.apache.org/187/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
        Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-vesta.apache.org/187/artifact/trunk/build/test/checkstyle-errors.html
        Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-vesta.apache.org/187/console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12405235/5655.patch against trunk revision 764287. +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 Eclipse classpath. The patch retains Eclipse classpath integrity. +1 release audit. The applied patch does not increase the total number of release audit warnings. -1 core tests. The patch failed core unit tests. -1 contrib tests. The patch failed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-vesta.apache.org/187/testReport/ Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-vesta.apache.org/187/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-vesta.apache.org/187/artifact/trunk/build/test/checkstyle-errors.html Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-vesta.apache.org/187/console This message is automatically generated.
        Hide
        Devaraj Das added a comment -

        HADOOP-5394 introduced this problem. Datanodes are started in TestMRServerPorts now. The attached patch should fix the problem. It passes 0 for all the datanode ports in the configuration of the datanode.

        Show
        Devaraj Das added a comment - HADOOP-5394 introduced this problem. Datanodes are started in TestMRServerPorts now. The attached patch should fix the problem. It passes 0 for all the datanode ports in the configuration of the datanode.
        Hide
        Hairong Kuang added a comment -
        Show
        Hairong Kuang added a comment - For more information check http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/803/testReport/ .

          People

          • Assignee:
            Devaraj Das
            Reporter:
            Hairong Kuang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development