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

Log INFO mode if snapshot usage and actual usage differ

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • None
    • 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.001.patch
          1 kB
          CR Hota
        2. HDFS-14760.002.patch
          1 kB
          CR Hota

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: