[
https://issues.apache.org/jira/browse/HDFS-7903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14355379#comment-14355379
]
Plamen Jeliazkov commented on HDFS-7903:
----------------------------------------
The block will be scheduled for deletion when commitBlockSync finishes.
The block will not belong to any Snapshot or file and be scheduled for deletion.
> Cannot recover block after truncate and delete snapshot
> -------------------------------------------------------
>
> Key: HDFS-7903
> URL: https://issues.apache.org/jira/browse/HDFS-7903
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: datanode, namenode
> Reporter: Tsz Wo Nicholas Sze
> Assignee: Plamen Jeliazkov
> Attachments: HDFS-7903.patch, testMultipleTruncate.patch
>
>
> # Create a file.
> # Create a snapshot.
> # Truncate the file in the middle of a block.
> # Delete the snapshot.
> The block cannot be recovered.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)