Skip to content

Commit

Permalink
[fix][txn] Fix potentially unfinishable future. (#15208)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6aaabdb)
  • Loading branch information
mattisonchao authored and codelipenghui committed Apr 28, 2022
1 parent 3ebc23e commit 84a0894
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -243,7 +243,11 @@ public CompletableFuture<Void> handleTcClientConnect(TransactionCoordinatorID tc
LOG.debug("Handle tc client connect added into pending queue! tcId : {}", tcId.toString());
}
}
}));
})).exceptionally(ex -> {
Throwable realCause = FutureUtil.unwrapCompletionException(ex);
completableFuture.completeExceptionally(realCause);
return null;
});
}
});
return completableFuture;
Expand Down

0 comments on commit 84a0894

Please sign in to comment.