You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Xiao Liang (JIRA)" <ji...@apache.org> on 2018/04/26 19:02:01 UTC

[jira] [Created] (HDFS-13509) Bug fix for breakHardlinks() of ReplicaInfo/LocalReplica, and fix TestFileAppend failures on Windows

Xiao Liang created HDFS-13509:
---------------------------------

             Summary: Bug fix for breakHardlinks() of ReplicaInfo/LocalReplica, and fix TestFileAppend failures on Windows
                 Key: HDFS-13509
                 URL: https://issues.apache.org/jira/browse/HDFS-13509
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Xiao Liang
            Assignee: Xiao Liang


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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org