You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/04/06 08:03:00 UTC
[GitHub] [pulsar] liangyepianzhou commented on a diff in pull request #14965: [fix][Transaction] Fix transaction admin redirect get 500 due to getCause
liangyepianzhou commented on code in PR #14965:
URL: https://github.com/apache/pulsar/pull/14965#discussion_r843613906
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/TransactionsBase.java:
##########
@@ -501,7 +501,11 @@ protected void internalGetCoordinatorInternalStats(AsyncResponse asyncResponse,
"This Broker is not configured with transactionCoordinatorEnabled=true."));
}
} catch (Exception e) {
- asyncResponse.resume(new RestException(e.getCause()));
+ if (e instanceof ExecutionException) {
Review Comment:
Really appreciate your pointing out this problem. This is my fault. I will optimize it.
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org