[
https://issues.apache.org/jira/browse/HDFS-17905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18072210#comment-18072210
]
ASF GitHub Bot commented on HDFS-17905:
---------------------------------------
kokonguyen191 opened a new pull request, #8415:
URL: https://github.com/apache/hadoop/pull/8415
### Description of PR
Since DNs do not report deleted blocks to NNs, in standby and observer
namenodes, if not removed, `pendingDNMessages` will never drain messages from
blocks that have already been deleted, leading to a leak.
<img width="1426" height="672" alt="image"
src="https://github.com/user-attachments/assets/51e871ec-e85a-45d0-ad1f-263c107b1a33"
/>
The solution is to clean up the messages when the block is removed in
`BlockManager#removeBlock()`.
### How was this patch tested?
UT
> Standby/Observer NameNode can leak pending DN messages
> ------------------------------------------------------
>
> Key: HDFS-17905
> URL: https://issues.apache.org/jira/browse/HDFS-17905
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Felix N
> Assignee: Felix N
> Priority: Major
>
> Since DNs do not report deleted blocks to NNs, in standby and observer
> namenodes, if not removed, pendingDNMessages will never drain messages from
> blocks that have already been deleted, leading to a leak.
> The solution is to clean up the messages inside removeBlock() as well.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]