[ https://issues.apache.org/jira/browse/HBASE-13784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14569166#comment-14569166 ]
Jurriaan Mous commented on HBASE-13784: --------------------------------------- [~stack] I am still a bit doubting. I am thinking of either making a clean Table implementation using AsyncTable internally or using the AsyncTable already within HTable itself. I would then call the async method within the sync table call to fetch the promise. Something like the code below. {code} @Override public Result get(final Get get) throws IOException { try { return asyncTable.get(get).get(); } catch (InterruptedException e) { throw new InterruptedIOException(e.getMessage()); } catch (ExecutionException e) { throw (IOException) e.getCause(); } } {code} For a new Table implementation to work within the tests I have to make sure Connection returns the new implementation and all relevant tests work through fetching a table through Connection. This way I am certain the new Api is all ok against all existing tests. It is too difficult to replicate all the Api tests. > Add Async Client Table API > -------------------------- > > Key: HBASE-13784 > URL: https://issues.apache.org/jira/browse/HBASE-13784 > Project: HBase > Issue Type: New Feature > Reporter: Jurriaan Mous > Assignee: Jurriaan Mous > Attachments: HBASE-13784-v1.patch, HBASE-13784-v2.patch, > HBASE-13784-v3.patch, HBASE-13784-v4.patch, HBASE-13784.patch > > > With the introduction of the Async HBase RPC Client it is possible to create > an Async Table API and more. This issue is focussed on creating a first async > Table API so it is possible to do any non deprecated Table call in an async > way. -- This message was sent by Atlassian JIRA (v6.3.4#6332)