You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Wei-Chiu Chuang (JIRA)" <ji...@apache.org> on 2019/06/19 05:24:00 UTC
[jira] [Commented] (HDFS-13530) NameNode: Fix NullPointerException
when getQuotaUsageInt() invoked
[ https://issues.apache.org/jira/browse/HDFS-13530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16867231#comment-16867231 ]
Wei-Chiu Chuang commented on HDFS-13530:
----------------------------------------
The patch stalled for over a year, but it still applies cleanly.
A test would be great but the fix itself is good. How about we commit the fix and file another jira to add a test?
> NameNode: Fix NullPointerException when getQuotaUsageInt() invoked
> ------------------------------------------------------------------
>
> Key: HDFS-13530
> URL: https://issues.apache.org/jira/browse/HDFS-13530
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: federation, namenode
> Reporter: liuhongtong
> Assignee: liuhongtong
> Priority: Major
> Attachments: HDFS-13530.001.patch
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org