mattisonchao commented on code in PR #15017:
URL: https://github.com/apache/pulsar/pull/15017#discussion_r843888728


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v3/Transactions.java:
##########
@@ -205,6 +248,7 @@ public void getCoordinatorInternalStats(@Suspended final 
AsyncResponse asyncResp
                                             @DefaultValue("false") boolean 
authoritative,
                                             @PathParam("coordinatorId") String 
coordinatorId,
                                             @QueryParam("metadata") 
@DefaultValue("false") boolean metadata) {
+        checkTransactionCoordinatorEnabled();

Review Comment:
   Looks like we should catch this method exception.



##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v3/Transactions.java:
##########
@@ -188,6 +230,7 @@ public void getSlowTransactions(@Suspended final 
AsyncResponse asyncResponse,
                                     @DefaultValue("false") boolean 
authoritative,
                                     @PathParam("timeout") String timeout,
                                     @QueryParam("coordinatorId") Integer 
coordinatorId) {
+        checkTransactionCoordinatorEnabled();

Review Comment:
   Looks like we should catch this method exception.



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