Block files which have been hardlinked should be duplicated before the DataNode appends to the them. The patch for HDFS-8860 accidentally removed this code.
Remove unused Replica copyOnWrite code
FAILURE: Integrated in Hadoop-trunk-Commit #9013 (See https://builds.apache.org/job/Hadoop-trunk-Commit/9013/)
HDFS-9589. Block files which have been hardlinked should be duplicated (cmccabe: rev bb540ba85aa37d9fe31e640665158afe8a936230)
Thanks, Lei (Eddy) Xu. The test failures appear to be spurious; they all pass on my machine. Committing to 2.8...
This message was automatically generated.
+1. The changes are most brought from what deleted from HDFS-8860, with appropriate names.
Thanks a lot for helping with this patch.
Thanks to Lei (Eddy) Xu and Tony Wu for pointing out this error.