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

TestIPC occassionally fails with BindException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.8.0
    • 0.9.0
    • test
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: