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

Wellington Chevreuil commented on HBASE-21828:
----------------------------------------------

I read the javadoc description for CompletableFuture.whenComplete(), and my 
interpretations is that it should return the actual error faced during 
execution. So, I then ran the added test with the original AsyncRegionLocator 
code (that uses whenComplete() method), and it still passed. Debugging the 
test, I could see exception set for errorHolder is a TableNotFoundException. On 
the umbrella jira, I can see you mentioned some problems with 
CompletionException on  HBASE-21779, was that due nested 
CompletableFuture.whenComplete calls?

> Make sure we do not return CompletionException when locating region
> -------------------------------------------------------------------
>
>                 Key: HBASE-21828
>                 URL: https://issues.apache.org/jira/browse/HBASE-21828
>             Project: HBase
>          Issue Type: Sub-task
>          Components: asyncclient, Client
>            Reporter: Duo Zhang
>            Assignee: Duo Zhang
>            Priority: Major
>             Fix For: 3.0.0, 2.2.0, 2.1.3, 2.0.5, 2.3.0
>
>         Attachments: HBASE-21828.patch
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to