You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by sh...@apache.org on 2022/02/16 06:07:55 UTC
[pulsar] branch master updated: Fix the wrong parameter in the log. (#14309)
This is an automated email from the ASF dual-hosted git repository.
shoothzj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 9b003f9 Fix the wrong parameter in the log. (#14309)
9b003f9 is described below
commit 9b003f96f1deb8e02a1654e30fbddd211d787e8e
Author: Qiang Zhao <74...@users.noreply.github.com>
AuthorDate: Wed Feb 16 14:05:53 2022 +0800
Fix the wrong parameter in the log. (#14309)
### Motivation
Bad parameters in the log will always print "null", which can confuse users.
### Modifications
- Correct exception parameter.
---
.../pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java
index dc5cc20..9b8c69e 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java
@@ -340,7 +340,7 @@ public class SystemTopicBasedTopicPoliciesService implements TopicPoliciesServic
reader.readNextAsync().whenComplete((msg, e) -> {
if (e != null) {
log.error("[{}] Failed to read event from the system topic.",
- reader.getSystemTopic().getTopicName(), ex);
+ reader.getSystemTopic().getTopicName(), e);
future.completeExceptionally(e);
readerCaches.remove(reader.getSystemTopic().getTopicName().getNamespaceObject());
policyCacheInitMap.remove(reader.getSystemTopic().getTopicName().getNamespaceObject());