nandakumar131 commented on issue #1153: HDDS-1855. 
TestStorageContainerManager#testScmProcessDatanodeHeartbeat is failing.
URL: https://github.com/apache/hadoop/pull/1153#issuecomment-515311574
 
 
   @ChenSammi, the test was failing even in my local. This is because 
`CachedDNSToSwitchMapping` always uses IP address for the resolution.
   
   ```
   public List<String> resolve(List<String> names) {
       // normalize all input names to be in the form of IP addresses
       names = NetUtils.normalizeHostNames(names);
   
       List <String> result = new ArrayList<String>(names.size());
       if (names.isEmpty()) {
         return result;
       }
   
       List<String> uncachedHosts = getUncachedHosts(names);
   
       // Resolve the uncached hosts
       List<String> resolvedHosts = rawMapping.resolve(uncachedHosts);
       //cache them
       cacheResolvedHosts(uncachedHosts, resolvedHosts);
       //now look up the entire list in the cache
       return getCachedHosts(names);
   
     }
   ```
   
   **Note:** // normalize all input names to be in the form of IP addresses

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to