HDFS-7757. Misleading error messages in FSImage.java. (Contributed by Brahma Reddy Battula)

This commit is contained in:
Arpit Agarwal 2015-03-03 10:55:22 -08:00
parent a9613bcc94
commit 7e6624c218
2 changed files with 6 additions and 3 deletions

View File

@ -768,6 +768,9 @@ Release 2.7.0 - UNRELEASED
HDFS-7871. NameNodeEditLogRoller can keep printing "Swallowing exception"
message. (jing9)
HDFS-7757. Misleading error messages in FSImage.java. (Brahma Reddy Battula
via Arpit Agarwal)
BREAKDOWN OF HDFS-7584 SUBTASKS AND RELATED JIRAS
HDFS-7720. Quota by Storage Type API, tools and ClientNameNode

View File

@ -887,7 +887,7 @@ private static void updateCountForQuotaRecursively(BlockStoragePolicySuite bsps,
final long namespace = counts.getNameSpace() - parentNamespace;
final long nsQuota = q.getNameSpace();
if (Quota.isViolated(nsQuota, namespace)) {
LOG.error("BUG: Namespace quota violation in image for "
LOG.warn("Namespace quota violation in image for "
+ dir.getFullPathName()
+ " quota = " + nsQuota + " < consumed = " + namespace);
}
@ -895,7 +895,7 @@ private static void updateCountForQuotaRecursively(BlockStoragePolicySuite bsps,
final long ssConsumed = counts.getStorageSpace() - parentStoragespace;
final long ssQuota = q.getStorageSpace();
if (Quota.isViolated(ssQuota, ssConsumed)) {
LOG.error("BUG: Storagespace quota violation in image for "
LOG.warn("Storagespace quota violation in image for "
+ dir.getFullPathName()
+ " quota = " + ssQuota + " < consumed = " + ssConsumed);
}
@ -907,7 +907,7 @@ private static void updateCountForQuotaRecursively(BlockStoragePolicySuite bsps,
parentTypeSpaces.get(t);
final long typeQuota = q.getTypeSpaces().get(t);
if (Quota.isViolated(typeQuota, typeSpace)) {
LOG.error("BUG: Storage type quota violation in image for "
LOG.warn("Storage type quota violation in image for "
+ dir.getFullPathName()
+ " type = " + t.toString() + " quota = "
+ typeQuota + " < consumed " + typeSpace);