[
https://issues.apache.org/jira/browse/HDFS-11617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16920866#comment-16920866
]
hemanthboyina commented on HDFS-11617:
--------------------------------------
[~jojochuang] [~brahmareddy]
_if we have to choose between rbw replica and finalized replica (assuming size
and genstamp are same), we should delete rbw replica, not finalized replica._
should we go ahead with this ?
> Datanode should delete the block from rbw directory when it finds duplicate
> in finalized directory.
> ---------------------------------------------------------------------------------------------------
>
> Key: HDFS-11617
> URL: https://issues.apache.org/jira/browse/HDFS-11617
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: datanode
> Affects Versions: 2.7.3
> Reporter: Rushabh S Shah
> Priority: Major
>
> Recently we had power failure event and we hit HDFS-5042.
> There were missing blocks but datanode had the copy of the block (and meta
> file) in rbw directory.
> I manually copied the block and meta file to finalized directory and
> restarted the datanode.
> But after restart, the block somehow got deleted from the finalized directory.
> So I think the datanode tried to resolve duplicate replicas and in process of
> resolving it deleted the replica from finalized directory.
> In my opinion, if we have to choose between rbw replica and finalized replica
> (assuming size and genstamp are same), we should delete rbw replica, not
> finalized replica.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]