[ https://issues.apache.org/jira/browse/HDFS-3510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13292047#comment-13292047 ]
Hadoop QA commented on HDFS-3510: --------------------------------- -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12531446/HDFS-3510.001.patch against trunk revision . +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 1 new or modified test files. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 javadoc. The javadoc tool did not generate any warning messages. +1 eclipse:eclipse. The patch built with eclipse:eclipse. +1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. -1 core tests. The patch failed these unit tests in hadoop-hdfs-project/hadoop-hdfs: org.apache.hadoop.hdfs.server.namenode.TestEditLogFileOutputStream +1 contrib tests. The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/2622//testReport/ Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/2622//console This message is automatically generated. > Fix FSEditLog pre-allocation > ---------------------------- > > Key: HDFS-3510 > URL: https://issues.apache.org/jira/browse/HDFS-3510 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 1.0.0, 2.0.0-alpha > Reporter: Colin Patrick McCabe > Assignee: Colin Patrick McCabe > Fix For: 1.0.0, 2.0.1-alpha > > Attachments: HDFS-3510-b1.001.patch, HDFS-3510-b1.002.patch, > HDFS-3510.001.patch > > > In the FSEditLog, we want to avoid running out of space in the middle of > writing an edit log operation to the disk. We do this by a process called > "preallocation"-- reserving space on the disk for the upcoming edit log > entries before beginning to write them. > There are two problems: > In both trunk and branch-1: > * We only try to do preallocation when the current position is less than 4096 > bytes from the end of the file. However, bufReady starts out at 512kb, and > only gets bigger from there. There is no way that 4kb is enough space to > reserve. > Only in branch-1: > * The branch-1 code unfortunately creates sparse files rather than actually > pre-allocating the required space. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira