[ 
https://issues.apache.org/jira/browse/HBASE-30598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Prathyusha Garre reassigned HBASE-30598:
----------------------------------------

    Assignee: Prathyusha Garre

> Support a separate root directory for store file tracker manifests
> ------------------------------------------------------------------
>
>                 Key: HBASE-30598
>                 URL: https://issues.apache.org/jira/browse/HBASE-30598
>             Project: HBase
>          Issue Type: New Feature
>            Reporter: Prathyusha Garre
>            Assignee: Prathyusha Garre
>            Priority: Major
>
> HFiles. When \{{hbase.rootdir}} is on an object store such as S3A, every 
> manifest operation is an object-store request:
> * Every flush, compaction commit, bulk load, split and merge rewrites the 
> manifest: one create of the next rotation file and one delete of the other.
> * Every store open lists \{{.filelist}}, then reads the newest pair of 
> manifest files. Unlike DEFAULT, FILE does not list the store directory to 
> find its HFiles, but it cannot avoid this listing. Since HBASE-26791, each 
> writable open starts a new pair of manifest file names, so that a newer 
> writer's files win over a stale writer's. The current pair can only be found 
> by listing.
> ** This runs for every store on every region open. It runs again whenever 
> split, merge, snapshot or restore code loads a region's files, and on each 
> secondary-replica refresh.
> ** By default a region opens its stores one at a time 
> (\{{hbase.hstore.open.and.close.threads.max}} = 1), so a region with many 
> column families pays these round trips one after another. Region open is on 
> the critical path of assignment, failover and rolling restarts.
> These are small, latency-sensitive metadata operations on the region open and 
> commit paths. On an object store they pay object-store latency and count 
> against per-prefix request limits (see HBASE-27841). Only the HFiles benefit 
> from object storage.
> HBase already has a precedent: \{{hbase.wal.dir}} puts WALs on a second 
> filesystem, and keeps per-region \{{recovered.edits}} and seqid files in that 
> root under \{{data/<ns>/<table>/<region>}}, mirroring the rootdir layout 
> (\{{CommonFSUtils.getWALRootDir}}, \{{CommonFSUtils.getWALRegionDir}}, 
> \{{HRegionWALFileSystem}}). Store file tracker manifests have no equivalent.
> h3. Proposal
> Add an optional root directory for store file tracker manifests:
> {noformat}
> hbase.rootdir                = s3a://bucket/hbase
> hbase.wal.dir                = hdfs://nn/hbase-wal
> hbase.store.file-tracker.dir = hdfs://nn/hbase-sft      (new; name TBD)
> HFile:    s3a://bucket/hbase/data/default/t1/<region>/cf/<hfile>
> Manifest: hdfs://nn/hbase-sft/data/default/t1/<region>/cf/.filelist/f1.<seqId>
> {noformat}
> A manifest keeps its path relative to \{{hbase.rootdir}}, under the new root. 
> Only manifests move; HFile paths, the archive, snapshots and reference files 
> are unchanged. The new root must not overlap \{{hbase.rootdir}} or 
> \{{hbase.wal.dir}}: neither may contain the other (compare the check that 
> keeps \{{hbase.wal.dir}} out of \{{hbase.rootdir}}). It can be a sibling of 
> the WAL dir on the same filesystem.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to