[ https://issues.apache.org/jira/browse/HDFS-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Foley updated HDFS-2282: ----------------------------- Description: In the 0.20.203 codebase, block reports are not synchronized in any way against mutations to the actual file structure on disk. If a file is removed from a directory while the block report is scanning that directory, it will be mistakenly reported as existing with a length of 0, since File.length() on a non-existent file returns 0. This results in an error being logged on the DataNode when the NN sends it a second block deletion request for the already-deleted block. I believe it to be harmless, but the error message can concern users. This was fixed in the 0.20 code line in HDFS-2379. This jira remains open to track the port to 0.24. was: In the 0.20 codebase, block reports are not synchronized in any way against mutations to the actual file structure on disk. If a file is removed from a directory while the block report is scanning that directory, it will be mistakenly reported as existing with a length of 0, since File.length() on a non-existent file returns 0. This results in an error being logged on the DataNode when the NN sends it a second block deletion request for the already-deleted block. I believe it to be harmless, but the error message can concern users. Affects Version/s: 0.24.0 Fix Version/s: (was: 1.1.0) Since this patch was not applied (from this jira) to 1.0, changing "fix version" usage to clean up release notes for 1.1.0. > Semi-harmless race between block reports and block invalidation > --------------------------------------------------------------- > > Key: HDFS-2282 > URL: https://issues.apache.org/jira/browse/HDFS-2282 > Project: Hadoop HDFS > Issue Type: Bug > Components: data-node > Affects Versions: 0.20.203.0, 0.24.0 > Reporter: Todd Lipcon > Attachments: hdfs-2282-20.txt, hdfs-2282-20.txt > > > In the 0.20.203 codebase, block reports are not synchronized in any way > against mutations to the actual file structure on disk. If a file is removed > from a directory while the block report is scanning that directory, it will > be mistakenly reported as existing with a length of 0, since File.length() on > a non-existent file returns 0. > This results in an error being logged on the DataNode when the NN sends it a > second block deletion request for the already-deleted block. I believe it to > be harmless, but the error message can concern users. > This was fixed in the 0.20 code line in HDFS-2379. This jira remains open to > track the port to 0.24. -- 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