congbobo184 commented on code in PR #16160:
URL: https://github.com/apache/pulsar/pull/16160#discussion_r1025384855


##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/MultiTopicsConsumerImpl.java:
##########
@@ -695,18 +688,15 @@ private ConsumerConfigurationData<T> 
getInternalConsumerConfig() {
 
     @Override
     public void redeliverUnacknowledgedMessages() {
-        lock.writeLock().lock();
-        try {
+        internalPinnedExecutor.execute(() -> {
             CONSUMER_EPOCH.incrementAndGet(this);

Review Comment:
   use `internalPinnedExecutor` then `CONSUMER_EPOCH.incrementAndGet(this);` 
the epoch will not work



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