hbase-issues mailing list archives

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

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

Phil Yang commented on HBASE-16505:

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

View raw message