You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Huaxiang Sun (Jira)" <ji...@apache.org> on 2022/10/05 21:03:00 UTC
[jira] [Created] (HBASE-27414) Search order for locations in HFileLink
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)