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 "Jian Zhang (Jira)" <ji...@apache.org> on 2023/11/25 09:20:00 UTC

[jira] [Updated] (HDFS-17265) RBF: Throwing an exception prevents the semaphore from being released when using FairnessPolicyController

     [ https://issues.apache.org/jira/browse/HDFS-17265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jian Zhang updated HDFS-17265:
------------------------------
    Description: 
When the router uses FairnessPolicyController, each time a request is processed,

the permit of the ns corresponding to the request will be obtained first {*}(method acquirePermit){*},

and then theĀ  information of namenodes corresponding to the ns will be obtained{*}(method getOrderedNamenodes){*}.

getOrderedNamenodes comes after acquirePermit, so if acquirePermit succeeds but getOrderedNamenodes throws an exception, the permit cannot be released.

> RBF: Throwing an exception prevents the semaphore from being released when using FairnessPolicyController
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-17265
>                 URL: https://issues.apache.org/jira/browse/HDFS-17265
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Jian Zhang
>            Priority: Major
>
> When the router uses FairnessPolicyController, each time a request is processed,
> the permit of the ns corresponding to the request will be obtained first {*}(method acquirePermit){*},
> and then theĀ  information of namenodes corresponding to the ns will be obtained{*}(method getOrderedNamenodes){*}.
> getOrderedNamenodes comes after acquirePermit, so if acquirePermit succeeds but getOrderedNamenodes throws an exception, the permit cannot be released.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org