[
https://issues.apache.org/jira/browse/HBASE-8446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13646764#comment-13646764
]
Matteo Bertozzi commented on HBASE-8446:
----------------------------------------
{quote}So if two simultaneous requests are sent and multiple threads are used
what ensures they don't both reach this method and race?{quote}
m... there's a bit of confusion here. the thread pool -
executor.submit(handler) is used to execute the "take a snapshot" or the
"restore" tasks.
This code, that adds the handler to the in-progress map, is part of the
SnapshotManager that is the coordinator of all the snapshot/restore requests.
all the snapshot/restore methods are synchronized so the actual "start task"
the request is sequential.
> Allow parallel snapshot of different tables
> -------------------------------------------
>
> Key: HBASE-8446
> URL: https://issues.apache.org/jira/browse/HBASE-8446
> Project: HBase
> Issue Type: Improvement
> Components: snapshots
> Affects Versions: 0.95.0
> Reporter: Matteo Bertozzi
> Assignee: Matteo Bertozzi
> Priority: Minor
> Fix For: 0.95.2
>
> Attachments: HBASE-8446-94.patch, HBASE-8446-v0.patch,
> HBASE-8446-v1.patch, HBASE-8446-v2.patch, HBASE-8446-v3.patch,
> HBASE-8446-v4.patch, HBASE-8446-v5.patch
>
>
> currently only one snapshot at the time is allowed.
> Like for the restore, we should allow taking snapshot of different tables in
> parallel.
--
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