From 8dd9c874e1478b653f9610a923b5bcaf9a422b4a Mon Sep 17 00:00:00 2001 From: huhaiyang Date: Sat, 15 Jul 2023 14:30:07 +0800 Subject: [PATCH] HDFS-17086. Fix the parameter settings in TestDiskspaceQuotaUpdate#updateCountForQuota (#5842). Contributed by Haiyang Hu. Reviewed-by: Shilun Fan Signed-off-by: Ayush Saxena --- .../hadoop/hdfs/server/namenode/TestDiskspaceQuotaUpdate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestDiskspaceQuotaUpdate.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestDiskspaceQuotaUpdate.java index 771caefd20..0cf696f504 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestDiskspaceQuotaUpdate.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestDiskspaceQuotaUpdate.java @@ -394,7 +394,7 @@ private void updateCountForQuota(int i) { FSNamesystem fsn = cluster.getNamesystem(); fsn.writeLock(); try { - getFSDirectory().updateCountForQuota(1); + getFSDirectory().updateCountForQuota(i); } finally { fsn.writeUnlock(); }