This message was deleted.
# general
s
This message was deleted.
u
For example in this case below, if createAsync() throws an exception directly, the
future
will never get completed. This kind of problem is very hard to troubleshooting cause it could haven’t any log.
Copy code
CompletableFuture<xxx> future = new CompletableFuture<>();
xxx.whenComplete((v, ex) -> {
    xxx.createAsync().whenComplete((v, ex) -> {
        if (ex != null) {
            future.completeExceptionally(ex);
        } else {
            future.complete(v);
        }
    });
})
@Tom (Xiatech)
👍 1
👀 1
m
Yes, it should return a failed future here
u
Ok, I’ll open a PR later.
I’ve opened a PR, please feel free to take a look https://github.com/apache/pulsar/pull/20521
t
Ressurecting this old thread - as i am still encountering silently failing sinks and sources - it looks like your PR has been given change request