HDFS-5042 introduced fsyncDirectory(..) to save blocks from power failure.
Do it outside of FSDataset lock to avoid overall performance degradation if disk takes more time to sync.
Completed files lost after power failure
Attached the patch for trunk
This message was automatically generated.
Attached the branch-2 and branch-2.7 patches
Failures seems to be unrelated
+1, looks jenkins didn't run on branch-2.7 patch.
Attaching branch-2.7 patch again for jenkins
no test failures are related to this change.
will hold for commit till Kihwal Lee review once.
Hi Kihwal Lee
can you please check once..?
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #12153 (See https://builds.apache.org/job/Hadoop-trunk-Commit/12153/)
HDFS-12157. Do fsyncDirectory(..) outside of FSDataset lock. Contributed (kihwal: rev 69afa26f19adad4c630a307c274130eb8b697141)
I've committed this to trunk, branch-2, branch-2.8, branch-2.8.2 and branch-2.7. Thanks for working on this Vinay and thanks for reviewing it Brahma.