[
https://issues.apache.org/jira/browse/HBASE-18309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16241929#comment-16241929
]
Reid Chan edited comment on HBASE-18309 at 11/7/17 5:01 PM:
------------------------------------------------------------
To trigger CleanerChore, i created some directories and files (not exactly
hbase formatted file) under hbase.rootdir/archive (or hbase.rootdir/oldWALs is
the same, and hbase.rootdir is /tmp/hbase in my case).
More specifically, 10 directories created under /tmp/hbase/archive, and in each
directory, there're 100 files and subdirectories randomly generated, like
/tmp/hbase/archive/folder1/file_0,
/tmp/hbase/archive/folder1/folder2/folder3/file_x,
/tmp/hbase/archive/folder1/folder4, and so on. Then CleanerChore is supposed to
clean them up, and time is measured. Repeat it 10 times.
I hope i make it clear. Following is the result table (in ms):
||Test case||avg||min||max||
|single threads with sorting|1282.5|1089|1982|
|4 threads with sorting|1043.6|718|1359|
|4 threads without sorting|313.3|215|489|
|2 threads without sorting|310.5|204|434|
was (Author: reidchan):
To trigger CleanerChore, i created some directories and files (not exactly
hbase formatted file) under hbase.rootdir/archive (or hbase.rootdir/oldWALs is
the same, and hbase.rootdir is /tmp/hbase in my case).
More specifically, 10 directories created under /tmp/hbase/archive, and in each
directory, there're 100 files and subdirectories randomly generated, like
/tmp/hbase/archive/folder1/file_0,
/tmp/hbase/archive/folder1/folder2/folder3/file_x,
/tmp/hbase/archive/folder1/folder4, and so on. Then CleanerChore is supposed to
clean them up, and time is measured. Repeat it 10 times.
I hope i make it clear. Following is the result tables (in ms):
||Test case||avg||min||max||
|single threads with sorting|1282.5|1089|1982|
|4 threads with sorting|1043.6|718|1359|
|4 threads without sorting|313.3|215|489|
|2 threads without sorting|310.5|204|434|
> Support multi threads in CleanerChore
> -------------------------------------
>
> Key: HBASE-18309
> URL: https://issues.apache.org/jira/browse/HBASE-18309
> Project: HBase
> Issue Type: Improvement
> Components: wal
> Reporter: binlijin
> Assignee: Reid Chan
> Attachments: HBASE-18309.master.001.patch,
> HBASE-18309.master.002.patch
>
>
> There is only one thread in LogCleaner to clean oldWALs and in our big
> cluster we find this is not enough. The number of files under oldWALs reach
> the max-directory-items limit of HDFS and cause region server crash, so we
> use multi threads for LogCleaner and the crash not happened any more.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)