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

NameNode: Fix NullPointerException when getQuotaUsageInt() invoked

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: federation, namenode
    • Labels:
      None

      Description

      If the directory is nonexistent, getQuotaUsage rpc call will run into 

      NullPointerException throwed by

      FSDirStatAndListingOp.getQuotaUsageInt() .

      I think FSDirStatAndListingOp.getQuotaUsageInt() should throw FileNotFoundException when the directory is nonexistent.

        Attachments

        1. HDFS-13530.001.patch
          2 kB
          liuhongtong

          Issue Links

            Activity

              People

              • Assignee:
                liuhongtong liuhongtong
                Reporter:
                liuhongtong liuhongtong
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: