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

NameNode: Fix NullPointerException when getQuotaUsageInt() invoked

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • federation, namenode
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: