[
https://issues.apache.org/jira/browse/HBASE-7841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13592635#comment-13592635
]
Matteo Bertozzi commented on HBASE-7841:
----------------------------------------
We have a util.Threads.newDaemonThreadFactory() that allows you to save some
code...
{code}
ThreadPoolExecutor pool = Threads.getBoundedCachedThreadPool(6, 30L,
TimeUnit.SECONDS,
Threads.newDaemonThreadFactory("DisabledTableSnapshotThread"));
{code}
other than that is +1 for me
> Parallelize offline snapshot in DisabledTableSnapshotHandler
> ------------------------------------------------------------
>
> Key: HBASE-7841
> URL: https://issues.apache.org/jira/browse/HBASE-7841
> Project: HBase
> Issue Type: Sub-task
> Reporter: Ted Yu
> Fix For: 0.98.0
>
> Attachments: 7841.txt, 7841-v2.txt
>
>
> In DisabledTableSnapshotHandler, there is TODO:
> {code}
> // TODO consider parallelizing these operations since they are independent.
> Right now its just
> // easier to keep them serial though
> @Override
> public void snapshotRegions(List<Pair<HRegionInfo, ServerName>>
> regionsAndLocations) throws IOException,
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira