[
https://issues.apache.org/jira/browse/HDFS-16540?focusedWorklogId=770656&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-770656
]
ASF GitHub Bot logged work on HDFS-16540:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 16/May/22 04:32
Start Date: 16/May/22 04:32
Worklog Time Spent: 10m
Work Description: saintstack commented on PR #4246:
URL: https://github.com/apache/hadoop/pull/4246#issuecomment-1127210267
I ran the two test below in loops locally.
TestBPOfferService.testMissBlocksWhenReregister
TestUnderReplicatedBlocks.testSetRepIncWithUnderReplicatedBlocks
The first failed once out of ten cycles both when the patch was in place and
when not (jibes w/ what we see here in test runs where sometimes it fails but
not always).
TestUnderReplicatedBlocks.testSetRepIncWithUnderReplicatedBlocks shows up
consistently but when I run it locally in multiple cycles, it passes whether
the patch is applied or not. I see that in the last full branch-3.3 run, back
on May 5th
(https://ci-hadoop.apache.org/job/hadoop-qbt-branch-3.3-java8-linux-x86_64/54/),
it failed for same reason (the May 12th run was incomplete). This test is
about block replication where the PR here is about a minor adjustment in NN
node accounting. Unrelated I'd say. Pushing the backport.
Will push in the morning.
Issue Time Tracking
-------------------
Worklog Id: (was: 770656)
Time Spent: 6h 50m (was: 6h 40m)
> 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
> Labels: pull-request-available
> Time Spent: 6h 50m
> 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.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]