You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2014/06/04 01:56:01 UTC

[jira] [Updated] (HBASE-11296) TableLockManager should provide API which returns whether specific table has outstanding lock

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

Ted Yu updated HBASE-11296:
---------------------------

    Description: 
In HBASE-11282, one proposal is to skip region movement during the period when table lock is held on the underlying table.

Currently TableLockManager provides the following API which iterates through all locks:
{code}
    public void visitAllLocks(MetadataHandler handler) throws IOException {
{code}
The above API is heavyweight for this use case where table name is known.

This JIRA is to add new API which returns whether given table has outstanding read / write lock.

  was:
Currently TableLockManager provides the following API which iterates through all locks:
{code}
    public void visitAllLocks(MetadataHandler handler) throws IOException {
{code}
This JIRA is to add new API which returns whether given table has outstanding read / write lock.


> TableLockManager should provide API which returns whether specific table has outstanding lock
> ---------------------------------------------------------------------------------------------
>
>                 Key: HBASE-11296
>                 URL: https://issues.apache.org/jira/browse/HBASE-11296
>             Project: HBase
>          Issue Type: Task
>            Reporter: Ted Yu
>
> In HBASE-11282, one proposal is to skip region movement during the period when table lock is held on the underlying table.
> Currently TableLockManager provides the following API which iterates through all locks:
> {code}
>     public void visitAllLocks(MetadataHandler handler) throws IOException {
> {code}
> The above API is heavyweight for this use case where table name is known.
> This JIRA is to add new API which returns whether given table has outstanding read / write lock.



--
This message was sent by Atlassian JIRA
(v6.2#6252)