HDFS-4165. Faulty sanity check in FsDirectory.unprotectedSetQuota. Contributed by Binglin Chang.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1407245 13f79535-47bb-0310-9956-ffa450edef68
(cherry picked from commit 0f7a4337ac
)
Conflicts:
hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
This commit is contained in:
parent
dacf2b5515
commit
c7cf212b2a
|
@ -260,6 +260,9 @@ Release 2.6.0 - UNRELEASED
|
||||||
|
|
||||||
HDFS-6519. Document oiv_legacy command (Akira AJISAKA via aw)
|
HDFS-6519. Document oiv_legacy command (Akira AJISAKA via aw)
|
||||||
|
|
||||||
|
HDFS-4165. Faulty sanity check in FsDirectory.unprotectedSetQuota.
|
||||||
|
(Binglin Chang via suresh)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HDFS-6690. Deduplicate xattr names in memory. (wang)
|
HDFS-6690. Deduplicate xattr names in memory. (wang)
|
||||||
|
|
|
@ -2240,9 +2240,9 @@ public class FSDirectory implements Closeable {
|
||||||
assert hasWriteLock();
|
assert hasWriteLock();
|
||||||
// sanity check
|
// sanity check
|
||||||
if ((nsQuota < 0 && nsQuota != HdfsConstants.QUOTA_DONT_SET &&
|
if ((nsQuota < 0 && nsQuota != HdfsConstants.QUOTA_DONT_SET &&
|
||||||
nsQuota < HdfsConstants.QUOTA_RESET) ||
|
nsQuota != HdfsConstants.QUOTA_RESET) ||
|
||||||
(dsQuota < 0 && dsQuota != HdfsConstants.QUOTA_DONT_SET &&
|
(dsQuota < 0 && dsQuota != HdfsConstants.QUOTA_DONT_SET &&
|
||||||
dsQuota < HdfsConstants.QUOTA_RESET)) {
|
dsQuota != HdfsConstants.QUOTA_RESET)) {
|
||||||
throw new IllegalArgumentException("Illegal value for nsQuota or " +
|
throw new IllegalArgumentException("Illegal value for nsQuota or " +
|
||||||
"dsQuota : " + nsQuota + " and " +
|
"dsQuota : " + nsQuota + " and " +
|
||||||
dsQuota);
|
dsQuota);
|
||||||
|
|
Loading…
Reference in New Issue