[ 
https://issues.apache.org/jira/browse/HDFS-17467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18023453#comment-18023453
 ] 

ASF GitHub Bot commented on HDFS-17467:
---------------------------------------

github-actions[bot] commented on PR #6730:
URL: https://github.com/apache/hadoop/pull/6730#issuecomment-3344446577

   We're closing this stale PR because it has been open for 100 days with no 
activity. This isn't a judgement on the merit of the PR in any way. It's just a 
way of keeping the PR queue manageable.
   If you feel like this was a mistake, or you would like to continue working 
on it, please feel free to re-open it and ask for a committer to remove the 
stale tag and review again.
   Thanks all for your contribution.




> IncrementalBlockReportManager#getPerStorageIBR may throw NPE when remove 
> volumes
> --------------------------------------------------------------------------------
>
>                 Key: HDFS-17467
>                 URL: https://issues.apache.org/jira/browse/HDFS-17467
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: datanode
>    Affects Versions: 3.4.0
>            Reporter: farmmamba
>            Assignee: farmmamba
>            Priority: Major
>              Labels: pull-request-available
>
> When we remove volumes, it may cause 
> IncrementalBlockReportManager#getPerStorageIBR throws NPE.
> Consider below situation:
> 1、we have down createRbw、finalizeBlock.  But have not done 
> datanode.closeBlock in method `BlockReceiver.PacketResponder#finalizeBlock`.
> 2、we remove volume which replica was written to and it executes such code: 
> `storageMap.remove(storageUuid);`
> 3、 we begin to execute datanode.closeBlock which try to send IBR to NameNode. 
> but when getting DatanodeStorage from storageMap using 
> storageUuid, we will get null because we have remove this storageUuid key 
> from storageMap.
> 4、Throw NPE in getPerStorageIBR method, because ConcurrentHashMap don't allow 
> null key.
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to