[ https://issues.apache.org/jira/browse/HBASE-21827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Duo Zhang resolved HBASE-21827. ------------------------------- Resolution: Fixed All sub-tasks are resolved. Resolve. > CompletableFuture may wrap the original Throwable with CompletionException > while propagating it > ----------------------------------------------------------------------------------------------- > > Key: HBASE-21827 > URL: https://issues.apache.org/jira/browse/HBASE-21827 > Project: HBase > Issue Type: Umbrella > Components: asyncclient, Client > Reporter: Duo Zhang > Assignee: Duo Zhang > Priority: Critical > > See the stack overflow post > https://stackoverflow.com/questions/49230980/does-completionstage-always-wrap-exceptions-in-completionexception > It seems that, for a chain of CompletableFutures, the first child will > receive the original exception, and the latter ones will receive a > CompletionException, which is the wrapper of the original exception. > This is also what I observed when debugging HBASE-21779. We need to fix this, > at least, we should unwrap it when we want to return exceptions to users. -- This message was sent by Atlassian JIRA (v7.6.3#76005)