Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-1304

There is no unit test for HftpFileSystem.open(..)

    Details

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

      Description

      HftpFileSystem.open(..) first opens an URL connection to namenode's FileDataServlet and then is redirected to datanode's StreamFile servlet. Such redirection does not work in the unit test environment because the redirect URL uses real hostname instead of localhost.

      One way to get around it is to use fault-injection in order to replace the real hostname with localhost.

      1. h1304_20100921.patch
        9 kB
        Tsz Wo Nicholas Sze
      2. h1304_20100922.patch
        9 kB
        Tsz Wo Nicholas Sze

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Tsz Wo Nicholas Sze
              Reporter:
              Tsz Wo Nicholas Sze
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development