You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "CR Hota (Jira)" <ji...@apache.org> on 2019/08/20 23:27:00 UTC
[jira] [Created] (HDFS-14760) Log INFO mode if snapshot usage and
actual usage differ
CR Hota created HDFS-14760:
------------------------------
Summary: Log INFO mode if snapshot usage and actual usage differ
Key: HDFS-14760
URL: https://issues.apache.org/jira/browse/HDFS-14760
Project: Hadoop HDFS
Issue Type: Improvement
Reporter: CR Hota
Assignee: CR Hota
{code}
private void checkStoragespace(final INodeDirectory dir, final long computed) {
if (-1 != quota.getStorageSpace() && usage.getStorageSpace() != computed) {
NameNode.LOG.error("BUG: Inconsistent storagespace for directory "
+ dir.getFullPathName() + ". Cached = " + usage.getStorageSpace()
+ " != Computed = " + computed);
}
}
{code}
The above code logs in error mode without throwing any exceptions or action and pollutes logs. This should be in INFO mode.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org