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

ASF GitHub Bot logged work on HDFS-16540:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Apr/22 19:51
            Start Date: 13/Apr/22 19:51
    Worklog Time Spent: 10m 
      Work Description: huaxiangsun opened a new pull request, #4170:
URL: https://github.com/apache/hadoop/pull/4170

   …etes
   
   <!--
     Thanks for sending a pull request!
       1. If this is your first time, please read our contributor guidelines: 
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
       2. Make sure your PR title starts with JIRA issue id, e.g., 
'HADOOP-17799. Your PR title ...'.
   -->
   
   ### Description of PR
   When Dn with the same uuid is registered with a different ip, 
host2DatanodeMap needs to be updated accordingly.
   
   ### How was this patch tested?
   Tested 3.3.2 with the patch on a eks cluster, restarted the pod hosting 
DataNode and HBase region server. After that, doing a major compaction of Hbase 
region, made sure that locality is kept.
   
   There is also a new unittest case added.
   
   ### For code changes:
   
   - [ ] Does the title or this PR starts with the corresponding JIRA issue id 
(e.g. 'HADOOP-17799. Your PR title ...')?
   - [ ] Object storage: have the integration tests been executed and the 
endpoint declared according to the connector-specific documentation?
   - [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, 
`NOTICE-binary` files?
   
   




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

            Worklog Id:     (was: 756643)
    Remaining Estimate: 0h
            Time Spent: 10m

> Data locality is lost when DataNode pod restarts in kubernetes 
> ---------------------------------------------------------------
>
>                 Key: HDFS-16540
>                 URL: https://issues.apache.org/jira/browse/HDFS-16540
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>    Affects Versions: 3.3.2
>            Reporter: Huaxiang Sun
>            Assignee: Huaxiang Sun
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> We have HBase RegionServer and Hdfs DataNode running in one pod. When the pod 
> restarts, we found that data locality is lost after we do a major compaction 
> of hbase regions. After some debugging, we found that upon pod restarts, its 
> ip changes. In DatanodeManager, maps like networktopology are updated with 
> the new info. host2DatanodeMap is not updated accordingly. When hdfs client 
> with the new ip tries to find a local DataNode, it fails. 
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to