This is an automated email from the ASF dual-hosted git repository.
technoboy pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-3.1 by this push:
new 67f34a8e1c6 [fix][client] Fix logging problem in pulsar client (#21094)
67f34a8e1c6 is described below
commit 67f34a8e1c6bd23848c5795716725643d8b98e09
Author: 萧易客 <[email protected]>
AuthorDate: Thu Aug 31 16:18:17 2023 +0800
[fix][client] Fix logging problem in pulsar client (#21094)
---
.../src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java
b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java
index ca3d2727ef0..06a0c1ddddd 100644
---
a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java
+++
b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java
@@ -421,7 +421,7 @@ public class ConsumerImpl<T> extends ConsumerBase<T>
implements ConnectionHandle
unsubscribeFuture.completeExceptionally(
PulsarClientException.wrap(e.getCause(),
String.format("Failed to unsubscribe the subscription
%s of topic %s",
- topicName.toString(), subscription)));
+ subscription, topicName.toString())));
return null;
});
} else {
@@ -2493,9 +2493,9 @@ public class ConsumerImpl<T> extends ConsumerBase<T>
implements ConnectionHandle
return;
}
+ log.warn("[{}] [{}] Could not get connection while
getLastMessageId -- Will try again in {} ms",
+ topic, getHandlerName(), nextDelay);
((ScheduledExecutorService)
client.getScheduledExecutorProvider().getExecutor()).schedule(() -> {
- log.warn("[{}] [{}] Could not get connection while
getLastMessageId -- Will try again in {} ms",
- topic, getHandlerName(), nextDelay);
remainingTime.addAndGet(-nextDelay);
internalGetLastMessageIdAsync(backoff, remainingTime, future);
}, nextDelay, TimeUnit.MILLISECONDS);