CapMoon opened a new pull request, #8386:
URL: https://github.com/apache/hadoop/pull/8386

   HDFS-17901. Fix getEligibleChildren not handling DatanodeInfo in 
excludedNodes
   
   ### Description of PR
   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 is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to