[
https://issues.apache.org/jira/browse/HDFS-6424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ming Ma updated HDFS-6424:
--------------------------
Attachment: HDFS-6424.patch
Here is the patch. The check is in addToInvalidates functions to cover
different ways of blocks could be invalidated. Extra test case will require
more work if folks want it.
> blockReport doesn't need to invalidate blocks on SBN
> ----------------------------------------------------
>
> Key: HDFS-6424
> URL: https://issues.apache.org/jira/browse/HDFS-6424
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Ming Ma
> Assignee: Ming Ma
> Attachments: HDFS-6424.patch
>
>
> After the fix in https://issues.apache.org/jira/browse/HDFS-6178,
> blockManager no longer compute pending replication work on SBN. As part of
> that, it also stop removing items from invalidateBlocks.
> blocks can still be added to invalidateBlocks on SBN as part of blockReport.
> As a result, the PendingDeletionBlocks metrics will keep going up on SBN.
> To fix that, we don't need to add blocks to invalidateBlocks during
> blockReport for SBN.
--
This message was sent by Atlassian JIRA
(v6.2#6252)