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

The Quota class's andByStorageType method res has an incorrect initial value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.4
    • None
    • rbf

    Description

      The Quata class's andByStorageType method is intended to apply bitwise and to each bit of StorageType.values( ) (the converted value), returning true only if all the values are true.
      So the initial value of res should be true and then loop through the array to perform the bitwise and operation.
      However, since res starts with fasle, the bitwise and always evaluates to false, so we should fix res to start with true.

      Attachments

        1. HDFS-17214-000.patch
          3 kB
          xiaojunxiang
        2. HDFS-17214-001.patch
          1 kB
          xiaojunxiang

        Issue Links

          Activity

            People

              bigdata_zoodev xiaojunxiang
              bigdata_zoodev xiaojunxiang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: