Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-1360

TestBlockRecovery should bind ephemeral ports

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.21.0, 0.22.0
    • Fix Version/s: 0.23.0
    • Component/s: test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      TestBlockRecovery starts up a DN, but doesn't configure the various ports to be ephemeral, so the test fails if run on a machine where another DN is already running.

      1. hdfs-1360.txt
        0.9 kB
        Todd Lipcon

        Issue Links

          Activity

          Hide
          Todd Lipcon added a comment -

          Hudson QA has been dead recently, but ran this manually:
          [junit] Running org.apache.hadoop.hdfs.server.datanode.TestBlockRecovery
          [junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 3.676 sec
          (this is on a machine where a DN is running, where it failed previously)

          Show
          Todd Lipcon added a comment - Hudson QA has been dead recently, but ran this manually: [junit] Running org.apache.hadoop.hdfs.server.datanode.TestBlockRecovery [junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 3.676 sec (this is on a machine where a DN is running, where it failed previously)
          Hide
          Patrick Kling added a comment -

          +1 I just tested this and it fixes the problem I was seeing.

          Show
          Patrick Kling added a comment - +1 I just tested this and it fixes the problem I was seeing.
          Hide
          Hairong Kuang added a comment -

          I've just committed this. Thanks Todd!

          Show
          Hairong Kuang added a comment - I've just committed this. Thanks Todd!
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Hdfs-trunk #643 (See https://builds.apache.org/hudson/job/Hadoop-Hdfs-trunk/643/)

          Show
          Hudson added a comment - Integrated in Hadoop-Hdfs-trunk #643 (See https://builds.apache.org/hudson/job/Hadoop-Hdfs-trunk/643/ )

            People

            • Assignee:
              Todd Lipcon
              Reporter:
              Todd Lipcon
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development