Huaxiang Sun created HBASE-27414:
------------------------------------

             Summary: Search order for locations in  HFileLink
                 Key: HBASE-27414
                 URL: https://issues.apache.org/jira/browse/HBASE-27414
             Project: HBase
          Issue Type: Improvement
          Components: Performance
            Reporter: Huaxiang Sun


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to