[ 
https://issues.apache.org/jira/browse/HDFS-17265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17794118#comment-17794118
 ] 

ASF GitHub Bot commented on HDFS-17265:
---------------------------------------

slfan1989 commented on PR #6298:
URL: https://github.com/apache/hadoop/pull/6298#issuecomment-1845077525

   > @Hexiaoqiao @goiri @slfan1989 hi, If no more comments here, please help 
merge it, thanks!
   
   @KeeProMise  I will merge this pr into the trunk branch tomorrow. Thank you 
for your contribution!




> RBF: Throwing an exception prevents the permit 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
>            Assignee: Jian Zhang
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HDFS-17265.patch
>
>
> *Bug 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.
>  
> *How to reproduce*
> Use the original code to run the new unit test 
> testReleasedWhenExceptionOccurs in this PR
>  
>  



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

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

Reply via email to