[
https://issues.apache.org/jira/browse/HDFS-7611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14290062#comment-14290062
]
Tsz Wo Nicholas Sze commented on HDFS-7611:
-------------------------------------------
Thanks for digging deep into it. We should fix the snapshot bug.
Is there a way to change TestFileTruncate for working around the bug? It is a
bad advertisement for the new truncate feature if TestFileTruncate keeps
failing.
> deleteSnapshot and delete of a file can leave orphaned blocks in the
> blocksMap on NameNode restart.
> ---------------------------------------------------------------------------------------------------
>
> Key: HDFS-7611
> URL: https://issues.apache.org/jira/browse/HDFS-7611
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: namenode
> Affects Versions: 2.6.0
> Reporter: Konstantin Shvachko
> Assignee: Byron Wong
> Priority: Critical
> Attachments: blocksNotDeletedTest.patch, testTruncateEditLogLoad.log
>
>
> If quotas are enabled a combination of operations *deleteSnapshot* and
> *delete* of a file can leave orphaned blocks in the blocksMap on NameNode
> restart. They are counted as missing on the NameNode, and can prevent
> NameNode from coming out of safeMode and could cause memory leak during
> startup.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)