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

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

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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. image-2018-05-09-16-31-40-981.png
          63 kB
          Xiao Liang
        2. image-2018-05-09-16-29-50-976.png
          63 kB
          Xiao Liang
        3. HDFS-13537-branch-2.000.patch
          1 kB
          Xiao Liang
        4. HDFS-13537.001.patch
          1 kB
          Xiao Liang
        5. HDFS-13537.000.patch
          2 kB
          Xiao Liang

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment