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

To Probe free ports dynamically for Unit test to replace fixed ports

    Details

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

      Description

      Currently hdfsproxy unit test uses Cactus in-container test. It uses three fixed ports. one for tomcat start-up/shut-down, another for tomcat http-port and the third for tomcat https-port.
      If theses ports are already in use, ant build will fail. To fix this, we decided to use a java program to probe the free ports dynamically and update the tomcat conf with these free ports.

        Attachments

        1. HADOOP-5386.patch
          18 kB
          zhiyong zhang
        2. HADOOP-5386.patch
          18 kB
          zhiyong zhang
        3. HADOOP-5386.patch
          16 kB
          zhiyong zhang
        4. HADOOP-5386.patch
          8 kB
          zhiyong zhang

          Activity

            People

            • Assignee:
              zhiyong1 zhiyong zhang
              Reporter:
              zhiyong1 zhiyong zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: