xiaojunxiang2023 commented on code in PR #6136:
URL: https://github.com/apache/hadoop/pull/6136#discussion_r1342613160


##########
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/Quota.java:
##########
@@ -75,8 +75,10 @@ public Quota(Router router, RouterRpcServer server) {
    * @param storagespaceQuota Storage space quota.
    * @param type StorageType that the space quota is intended to be set on.
    * @param checkMountEntry whether to check the path is a mount entry.
-   * @throws AccessControlException If the quota system is disabled or if
+   * @throws IOException If the quota system is disabled or if
    * checkMountEntry is true and the path is a mount entry.
+   * By the way, this latter case actually throws an AccessControlException,
+   * which happens to be a subclass of IOException.

Review Comment:
   emmm, What I'm trying to show is that this @throw doesn't match what the 
method actually throws, as shown in the following screenshot
   
   
![20231002-201623](https://github.com/apache/hadoop/assets/65019264/a75b136d-14bb-413e-a3e6-d79d4b373571)
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to