Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-14760

Log INFO mode if snapshot usage and actual usage differ

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: None
    • Labels:
      None

      Description

      In DirectoryWithQuotaFeature#checkStoragespace code logs in error mode without throwing any exceptions or action and pollutes logs. This should be in INFO mode.

        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);
          }
        }
      

        Attachments

        1. HDFS-14760.002.patch
          1 kB
          CR Hota
        2. HDFS-14760.001.patch
          1 kB
          CR Hota

          Issue Links

            Activity

              People

              • Assignee:
                crh CR Hota
                Reporter:
                crh CR Hota
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: