chamons commented on code in PR #25681:
URL: https://github.com/apache/pulsar/pull/25681#discussion_r3196212853
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentDispatcherMultipleConsumers.java:
##########
@@ -1379,7 +1379,9 @@ protected synchronized boolean
shouldPauseDeliveryForDelayTracker() {
@Override
public long getNumberOfDelayedMessages() {
- return
delayedDeliveryTracker.map(DelayedDeliveryTracker::getNumberOfDelayedMessages).orElse(0L);
+ synchronized (this) {
Review Comment:
Can you add synchronized on a @override method? I thought the signature had
to match?
--
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]