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

TestHdfsHelper does not generate jceks path properly for relative path in Windows

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.10.0, 3.2.0, 3.1.1, 2.9.2, 3.0.3
    • Component/s: None
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      In TestHdfsHelper#startMiniHdfs, jceks path is generated as:

      final String jceksPath = JavaKeyStoreProvider.SCHEME_NAME + "://file" +
          new Path(helper.getTestRootDir(), "test.jks").toUri();

      while the path from getTestRootDir() is a relative path (in windows), the result will be incorrect due to no "/" between "://file" and the relative path.

        Attachments

        1. HDFS-13537.000.patch
          2 kB
          Xiao Liang
        2. HDFS-13537.001.patch
          1 kB
          Xiao Liang
        3. HDFS-13537-branch-2.000.patch
          1 kB
          Xiao Liang
        4. image-2018-05-09-16-29-50-976.png
          63 kB
          Xiao Liang
        5. image-2018-05-09-16-31-40-981.png
          63 kB
          Xiao Liang

          Issue Links

            Activity

              People

              • Assignee:
                surmountian Xiao Liang
                Reporter:
                surmountian Xiao Liang
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: