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

Search order for locations in HFileLink

    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

            People

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

              Dates

                Created:
                Updated:
                Resolved: