codelipenghui commented on a change in pull request #5915: Allow to 
enable/disable delayed delivery for messages on namespace
URL: https://github.com/apache/pulsar/pull/5915#discussion_r363265639
 
 

 ##########
 File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentDispatcherMultipleConsumers.java
 ##########
 @@ -730,6 +730,7 @@ public boolean trackDelayedDelivery(long ledgerId, long 
entryId, MessageMetadata
                         
.of(topic.getBrokerService().getDelayedDeliveryTrackerFactory().newTracker(this));
             }
 
+            
delayedDeliveryTracker.get().resetTickTime(topic.checkTickTimeDelayedDelivery());
 
 Review comment:
   Same as above comment, reset tick time when the namespace policy changed is 
more economic than check need to reset for every message

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to