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 "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/05/30 02:32:00 UTC

[jira] [Commented] (HDFS-17031) Reduce some repeated codes in RouterRpcServer

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

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

smarthanwang opened a new pull request, #5701:
URL: https://github.com/apache/hadoop/pull/5701

   <!--
     Thanks for sending a pull request!
       1. If this is your first time, please read our contributor guidelines: https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
       2. Make sure your PR title starts with JIRA issue id, e.g., 'HADOOP-17799. Your PR title ...'.
   -->
   
   ### Description of PR
   
   https://issues.apache.org/jira/browse/HDFS-17031
   
   ### How was this patch tested?
   not need to test
   
   
   
   




> Reduce some repeated codes 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
>            Priority: Minor
>
> 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: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org