Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-17031

RBF: Reduce repeated code in RouterRpcServer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • rbf
    • Reviewed

    Description

      Reduce repeated codes :

       

      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; 

       

       

      Attachments

        Issue Links

          Activity

            People

              smarthan Chengwei Wang
              smarthan Chengwei Wang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: