[ 
https://issues.apache.org/jira/browse/HDDS-1713?focusedWorklogId=275647&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-275647
 ]

ASF GitHub Bot logged work on HDDS-1713:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 12/Jul/19 05:18
            Start Date: 12/Jul/19 05:18
    Worklog Time Spent: 10m 
      Work Description: ChenSammi commented on pull request #1008: HDDS-1713. 
ReplicationManager fail to find proper node topology based…
URL: https://github.com/apache/hadoop/pull/1008#discussion_r302410636
 
 

 ##########
 File path: 
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMDatanodeHeartbeatDispatcher.java
 ##########
 @@ -99,6 +99,9 @@ public SCMDatanodeHeartbeatDispatcher(NodeManager 
nodeManager,
       commands = nodeManager.getCommandQueue(dnID);
 
     } else {
+      // Get the datanode details again from node manager with the topology 
info
+      // for registered datanodes.
+      datanodeDetails = nodeManager.getNode(datanodeDetails.getIpAddress());
 
 Review comment:
   Xiaoyu, node can use Ipaddress or hostname as topology network name. 
   Maybe we should refactor nodeManager.getNode function, pass datanodeDetails 
in. Then make whether use Ipaddress or hostname as network topology name an 
inner logic in the getNode function. 
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 275647)
    Time Spent: 1h 40m  (was: 1.5h)

> ReplicationManager fail to find proper node topology based on Datanode 
> details from heartbeat
> ---------------------------------------------------------------------------------------------
>
>                 Key: HDDS-1713
>                 URL: https://issues.apache.org/jira/browse/HDDS-1713
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>            Reporter: Xiaoyu Yao
>            Assignee: Xiaoyu Yao
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> DN does not have the topology info included in its heartbeat message for 
> container report/pipeline report.
> SCM is where the topology information is available. During the processing of 
> heartbeat, we should not rely on the datanodedetails from report to choose 
> datanodes for close container. Otherwise, all the datanode locations of 
> existing container replicas will fallback to /default-rack.
>  
> The fix is to retrieve the corresponding datanode locations from scm 
> nodemanager, which has authoritative network topology information. 



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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

Reply via email to