mattisonchao opened a new pull request, #15811: URL: https://github.com/apache/pulsar/pull/15811
### Motivation Avoid invoking async methods with `thenAccept`. It will ignore the exception and do not waiting for the inner `CompletableFuture`. ### Modifications - Use `thenCompose` to instead of `thenAccept` ### Verifying this change - [x] Make sure that the change passes the CI checks. ### Documentation - [x] `doc-not-needed` (Please explain why) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
