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>
This commit is contained in:
CR Hota 2019-08-27 16:19:00 -07:00 committed by Wei-Chiu Chuang
parent 6f068cf53f
commit 6e37d65b03

View File

@ -140,7 +140,7 @@ ContentSummaryComputationContext computeContentSummary(final INodeDirectory dir,
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);
}