[ https://issues.apache.org/jira/browse/HDFS-7648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14327066#comment-14327066 ]
Tsz Wo Nicholas Sze commented on HDFS-7648: ------------------------------------------- > ... Has this ever actually happened? And if it did happen, isn't the answer > more likely to be "stop editing the VERSION file manually, silly" or "your > ext4 filesystem is bad and needs to be completely reformatted" rather than > "DN should cleverly fix"? If we wait until it happened, how could we help the users? The may also be other reasons such as there is a bug in the software, the admin manually moved the block files around, etc. > Verify the datanode directory layout > ------------------------------------ > > Key: HDFS-7648 > URL: https://issues.apache.org/jira/browse/HDFS-7648 > Project: Hadoop HDFS > Issue Type: Bug > Components: datanode > Reporter: Tsz Wo Nicholas Sze > Assignee: Rakesh R > Attachments: HDFS-7648-3.patch, HDFS-7648-4.patch, HDFS-7648-5.patch, > HDFS-7648.patch, HDFS-7648.patch > > > HDFS-6482 changed datanode layout to use block ID to determine the directory > to store the block. We should have some mechanism to verify it. Either > DirectoryScanner or block report generation could do the check. -- This message was sent by Atlassian JIRA (v6.3.4#6332)