hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-16505) Add AsyncRegion interface to pass deadline and support async operations
Date Tue, 30 Aug 2016 16:41:20 GMT

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

Ted Yu commented on HBASE-16505:
--------------------------------

{code}
48	  void getRowLock(RegionOperationContext<RowLock> context, byte[] row, boolean waitForLock);
{code}
How do you plan to implement the above in non-blocking fashion ?
At time t1, client submits getRowLock() request.
At t2, server fulfills the request and grants the lock.
At t3, client reacts to the response of the server.

How would you keep the duration of t3-t2 small ?

BTW in async version, waitForLock is not needed.

I have question on processRowsWithLocks() methods which are related to the above comment.
Waiting for your clarification.

> Add AsyncRegion interface to pass deadline and support async operations
> -----------------------------------------------------------------------
>
>                 Key: HBASE-16505
>                 URL: https://issues.apache.org/jira/browse/HBASE-16505
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Phil Yang
>            Assignee: Phil Yang
>         Attachments: HBASE-16505-v1.patch
>
>
> If we want to know the correct setting of timeout in read/write path, we need add a new
parameter in operation-methods of Region.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message