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

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

ZanderXu commented on PR #8386:
URL: https://github.com/apache/hadoop/pull/8386#issuecomment-4405391054

   Merged. Thanks @CapMoon for your contribution and thanks @kokonguyen191 for 
your review.




> Fix DFSNetworkTopology#getEligibleChildren missing DatanodeInfo handling 
> causing incorrect storageCount
> -------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-17901
>                 URL: https://issues.apache.org/jira/browse/HDFS-17901
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs
>    Affects Versions: 3.4.3
>            Reporter: yue.wang
>            Assignee: Yue Wang
>            Priority: Major
>              Labels: pull-request-available
>
> In DFSNetworkTopology#getEligibleChildren(), when iterating over 
> excludedNodes, the method only handles DatanodeDescriptor and 
> DFSTopologyNodeImpl types but misses the DatanodeInfo type. This causes 
> storageCount to be incorrectly calculated (overestimated), leading to 
> inconsistency with the parent method chooseRandomWithStorageType() and 
> potentially incorrect weighted random node selection.



--
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