[
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: [email protected]
For additional commands, e-mail: [email protected]