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

RBF: Reduce repeated code in RouterRpcServer

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment