Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-739

TestIPC occassionally fails with BindException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.9.0
    • Component/s: test
    • Labels:
      None

      Description

      org.apache.hadoop.ipc.TestIPC.testParallel occassionally fails with

      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$Listener.<init>(Server.java:161)
      at org.apache.hadoop.ipc.Server.start(Server.java:607)
      at org.apache.hadoop.ipc.TestIPC.testParallel(TestIPC.java:174)
      at org.apache.hadoop.ipc.TestIPC.testParallel(TestIPC.java:164)

      My guess is that port 1234 used by TestIPC.testSerial hasn't been cleaned up by the time TestIPC.testParallel tries to use it. The failure rate of this test seems around 5%.

        Attachments

        1. HADOOP-739.patch
          0.9 kB
          Nigel Daley

          Activity

            People

            • Assignee:
              nidaley Nigel Daley
              Reporter:
              nidaley Nigel Daley
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: