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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.10.0, 3.2.0, 3.1.1, 2.9.2, 3.0.3
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: