Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-27414

Search order for locations in HFileLink

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      Found that search order for locations is following the order of these locations added to HFileLink object. 

       

      setLocations(originPath, tempPath, mobPath, archivePath);

      archivePath is the last one to be searched. For most cases, hfile exists in archivePath, so we can move archivePath to the first parameter to avoid unnecessary NN query.

      Attachments

        Issue Links

        Activity

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

          People

            frostruan ruanhui
            huaxiangsun Huaxiang Sun
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment