Chengwei Wang created HDFS-17031:
------------------------------------
Summary: 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
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]