You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Toshihiro Suzuki (JIRA)" <ji...@apache.org> on 2019/02/20 16:49:00 UTC

[jira] [Comment Edited] (HBASE-21867) Support multi-threads in HFileArchiver

    [ https://issues.apache.org/jira/browse/HBASE-21867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16773181#comment-16773181 ] 

Toshihiro Suzuki edited comment on HBASE-21867 at 2/20/19 4:48 PM:
-------------------------------------------------------------------

I did some minor changes for the patch to pass some tests.


was (Author: brfrn169):
I did some changes for the patch to pass some tests.

> Support multi-threads in HFileArchiver
> --------------------------------------
>
>                 Key: HBASE-21867
>                 URL: https://issues.apache.org/jira/browse/HBASE-21867
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Toshihiro Suzuki
>            Assignee: Toshihiro Suzuki
>            Priority: Major
>         Attachments: HBASE-21867.master.001.patch, HBASE-21867.master.002.patch, HBASE-21867.master.002.patch, HBASE-21867.master.003.patch, HBASE-21867.master.004.patch
>
>
> As of now, when deleting a table, we do the following regarding the filesystem layout:
> 1. Move the table data to the temp directory (hbase/.tmp)
> 2. Archive the region directories of the table in the temp directory one by one:
> https://github.com/apache/hbase/blob/b322d0a3e552dc228893408161fd3fb20f6b8bf1/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/DeleteTableProcedure.java#L319-L323
> However, step 2 will take a long time when the table has a huge number of regions. So I propose doing step 2 in multi-threads in this Jira. 
> Also, during master startup, we do the same process as step 2:
> https://github.com/apache/hbase/blob/b322d0a3e552dc228893408161fd3fb20f6b8bf1/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterFileSystem.java#L313-L319
> We should make it multi-threaded, similarly.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)