This is an automated email from the ASF dual-hosted git repository.
technoboy pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 9c6671eafd8 [fix][client] Fix logging problem in pulsar client (#21094)
9c6671eafd8 is described below
commit 9c6671eafd81d76aa7327bd7cab24a375b33a644
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 d0b794ad51e..8263e7f3198 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
@@ -413,7 +413,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 {
@@ -2485,9 +2485,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);