Procházet zdrojové kódy

HDFS-14760. Log INFO mode if snapshot usage and actual usage differ. Contributed by CR Hota.

Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
CR Hota před 5 roky
rodič
revize
6e37d65b03

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/DirectoryWithQuotaFeature.java

@@ -140,7 +140,7 @@ public final class DirectoryWithQuotaFeature implements INode.Feature {
 
   private void checkStoragespace(final INodeDirectory dir, final long computed) {
     if (-1 != quota.getStorageSpace() && usage.getStorageSpace() != computed) {
-      NameNode.LOG.error("BUG: Inconsistent storagespace for directory "
+      NameNode.LOG.warn("BUG: Inconsistent storagespace for directory "
           + dir.getFullPathName() + ". Cached = " + usage.getStorageSpace()
           + " != Computed = " + computed);
     }