Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13296

GenericTestUtils generates paths with drive letter in Windows and fail webhdfs related test cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0, 2.10.0, 2.9.1, 3.0.3
    • None
    • Reviewed

    Description

      In GenericTestUtils#getRandomizedTestDir, getAbsoluteFile is called and will added drive letter to the path in windows, some test cases use the generated path to send webhdfs request, which will fail due to the drive letter in the URI like: "webhdfs://127.0.0.1:18334/D:/target/test/data/vUqZkOrBZa/test"

      GenericTestUtils#getTempPath has the similar issue in Windows.

      Attachments

        1. HDFS-13296.000.patch
          2 kB
          Xiao Liang

        Issue Links

          Activity

            People

              surmountian Xiao Liang
              surmountian Xiao Liang
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: