Hadoop Common
  1. Hadoop Common
  2. HADOOP-5386

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

      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

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development