sijie commented on a change in pull request #8143:
URL: https://github.com/apache/pulsar/pull/8143#discussion_r498000891
##########
File path:
pulsar-client-admin/src/main/java/org/apache/pulsar/client/admin/internal/FunctionsImpl.java
##########
@@ -801,7 +859,10 @@ private void downloadFile(String destinationPath,
WebTarget target) throws Pulsa
try {
downloadFileAsync(destinationPath, target).get(this.readTimeoutMs,
TimeUnit.MILLISECONDS);
} catch (ExecutionException e) {
- throw (PulsarAdminException) e.getCause();
+ if (e.getCause() instanceof PulsarAdminException) {
Review comment:
Can you abstract this into one common function?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]