You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Phil Yang (JIRA)" <ji...@apache.org> on 2016/08/30 13:08:21 UTC

[jira] [Comment Edited] (HBASE-16505) Add AsyncRegion interface to pass deadline and support async operations

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

Phil Yang edited comment on HBASE-16505 at 8/30/16 1:07 PM:
------------------------------------------------------------

Upload a patch which adds a new interface, AsyncRegion. We pass a RegionOperationContext with deadline (or other information in future) and get the result or exception with it. This issue only adds this new interface and handle TimeoutException at RPCServer. HRegion implements the methods of AsyncRegion but now they are only wrapping blocking methods.

In future, we can use the deadline to prevent wasting time on blocking operations in HRegion (other sub-tasks of HBASE-16492 will do this). And finally we can make operations of AsyncRegion fully non-blocking and Region's blocking methods will wrap non-blocking methods, or even we can remove the interface of blocking methods.

[~Apache9] [~carp84] Any suggestions? Thanks. 


was (Author: yangzhe1991):
Upload a patch which adds a new interface, AsyncRegion. We pass a RegionOperationContext with deadline (or other information in future) and get the result or exception with it. This issue only adds this new interface and handle TimeoutException at RPCServer. HRegion implements the methods of AsyncRegion but now they are only wrapping blocking methods.

In future, we can use the deadline to prevent wasting time on blocking operations in HRegion (other sub-tasks of HBASE-16492 will do this). And finally we can make operations of AsyncRegion fully non-blocking and Region's blocking methods will wrap non-blocking methods, or even we can remove the interface of blocking methods.

[~Apache9][~carp84] Any suggestions? Thanks. 

> 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)