Details
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
Attachments
Issue Links
- is related to
-
HDFS-13408 MiniDFSCluster to support being built on randomized base directory
- Resolved
-
HADOOP-15475 Fix broken unit tests on Windows
- Open