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

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

ayushtkn merged PR #5701:
URL: https://github.com/apache/hadoop/pull/5701




> RBF: Reduce repeated code in RouterRpcServer
> --------------------------------------------
>
>                 Key: HDFS-17031
>                 URL: https://issues.apache.org/jira/browse/HDFS-17031
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: rbf
>            Reporter: Chengwei Wang
>            Assignee: Chengwei Wang
>            Priority: Minor
>              Labels: pull-request-available
>
> Reduce repeated codes :
>  
> {code:java}
> if (subclusterResolver instanceof MountTableResolver) {
>   try {
>     MountTableResolver mountTable = (MountTableResolver)subclusterResolver;
>     MountTable entry = mountTable.getMountPoint(path);
>     // check logic
>   } catch (IOException e) {
>     LOG.error("Cannot get mount point", e);
>   }
> }
> return false; {code}
>  
>  



--
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