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

Bug fix for breakHardlinks() of ReplicaInfo/LocalReplica, and fix TestFileAppend failures on Windows

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate 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

      breakHardlinks() of ReplicaInfo(branch-2)/LocalReplica(trunk) replaces file while the source is still opened as input stream, which will fail and throw exception on Windows. It's the cause of  unit test case org.apache.hadoop.hdfs.TestFileAppend#testBreakHardlinksIfNeeded failure on Windows.

      Other test cases of TestFileAppend fail randomly on Windows due to sharing the same test folder, and the solution is using randomized base dir of MiniDFSCluster via HDFS-13408

      Attachments

        1. HDFS-13509-branch-2.000.patch
          10 kB
          Xiao Liang
        2. HDFS-13509.000.patch
          11 kB
          Xiao Liang
        3. HDFS-13509.001.patch
          11 kB
          Xiao Liang
        4. HDFS-13509.002.patch
          11 kB
          Íñigo Goiri

        Issue Links

        Activity

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

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment