[
https://issues.apache.org/jira/browse/HDFS-10791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15437326#comment-15437326
]
Tsz Wo Nicholas Sze commented on HDFS-10791:
--------------------------------------------
Hi [~linyiqun], thanks for pointing out the code. However, there are two
deficiencies:
# The code is only used by DirectoryScanner on FINALIZED blocks. RBW block
meta files won't be cleaned up.
# DirectoryScanner uses filters to list files so that it skips unidentified
files if these files are not matched by the patterns.
> Delete block meta file when the block file is missing
> -----------------------------------------------------
>
> Key: HDFS-10791
> URL: https://issues.apache.org/jira/browse/HDFS-10791
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: datanode
> Reporter: Tsz Wo Nicholas Sze
>
> When the block file is missing, the block meta file should be deleted if it
> exists.
> Note that such situation is possible since the meta file is closed before the
> block file, the datanode could be killed in-between.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]