HDFS-17086. Fix the parameter settings in TestDiskspaceQuotaUpdate#updateCountForQuota (#5842). Contributed by Haiyang Hu.
Reviewed-by: Shilun Fan <slfan1989@apache.org> Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
This commit is contained in:
parent
c457c445b7
commit
8dd9c874e1
@ -394,7 +394,7 @@ private void updateCountForQuota(int i) {
|
|||||||
FSNamesystem fsn = cluster.getNamesystem();
|
FSNamesystem fsn = cluster.getNamesystem();
|
||||||
fsn.writeLock();
|
fsn.writeLock();
|
||||||
try {
|
try {
|
||||||
getFSDirectory().updateCountForQuota(1);
|
getFSDirectory().updateCountForQuota(i);
|
||||||
} finally {
|
} finally {
|
||||||
fsn.writeUnlock();
|
fsn.writeUnlock();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user