You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by aa...@apache.org on 2022/01/28 08:12:54 UTC
[hadoop] branch branch-3.3 updated: HDFS-16169. Fix TestBlockTokenWithDFSStriped#testEnd2End failure (#3850)
This is an automated email from the ASF dual-hosted git repository.
aajisaka pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.3 by this push:
new 110104d HDFS-16169. Fix TestBlockTokenWithDFSStriped#testEnd2End failure (#3850)
110104d is described below
commit 110104da38e93af2b47ef151c7b9599e3782c871
Author: secfree <se...@gmail.com>
AuthorDate: Fri Jan 28 16:04:11 2022 +0800
HDFS-16169. Fix TestBlockTokenWithDFSStriped#testEnd2End failure (#3850)
Reviewed-by: Fei Hui <fe...@gmail.com>
Reviewed-by: litao <to...@gmail.com>
Signed-off-by: Akira Ajisaka <aa...@apache.org>
(cherry picked from commit 39cad5f28fec1d0de7e5a80dc3399f0ad1fd3fce)
---
.../java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java
index 498d785..35a9c2c 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java
@@ -1638,6 +1638,11 @@ public class TestBalancer {
BalancerParameters p = BalancerParameters.DEFAULT;
runBalancer(conf, totalUsedSpace, totalCapacity, p, 0);
+ // namenode will ask datanode to delete replicas in heartbeat response
+ cluster.triggerHeartbeats();
+ // namenode will update block locations according to the report
+ cluster.triggerDeletionReports();
+
// verify locations of striped blocks
locatedBlocks = client.getBlockLocations(fileName, 0, fileLen);
StripedFileTestUtil.verifyLocatedStripedBlocks(locatedBlocks, groupSize);
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org