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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.21.0
    • 0.21.0
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: