codelipenghui commented on a change in pull request #13888:
URL: https://github.com/apache/pulsar/pull/13888#discussion_r789631908



##########
File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
##########
@@ -4729,10 +4727,11 @@ private void 
internalGetReplicatedSubscriptionStatusForNonPartitionedTopic(Async
                 asyncResponse.resume(new 
RestException(Status.METHOD_NOT_ALLOWED,
                         "Cannot get replicated subscriptions on non-persistent 
topics"));
             }
-        } catch (Exception e) {
+        }).exceptionally(e -> {
             log.error("[{}] Failed to get replicated subscription status on {} 
{}", clientAppId(),
                     topicName, subName, e);

Review comment:
       ```suggestion
                       topicName, subName, e.getCause());
   ```




-- 
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]


Reply via email to