poorbarcode commented on code in PR #18315:
URL: https://github.com/apache/pulsar/pull/18315#discussion_r1017719480
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentStickyKeyDispatcherMultipleConsumers.java:
##########
@@ -322,15 +322,9 @@ protected synchronized boolean
trySendMessagesToConsumers(ReadType readType, Lis
}
// readMoreEntries should run regardless whether or not stuck is
caused by
// stuckConsumers for avoid stopping dispatch.
- sendInProgress = false;
-
topic.getBrokerService().executor().execute(safeRun(this::readMoreEntries));
+
topic.getBrokerService().executor().schedule(safeRun(this::readMoreEntries),
100, TimeUnit.MILLISECONDS);
Review Comment:
`readMoreEntries` is triggered in the method `sendMessagesToConsumers`, can
we remove these two lines?
```java
topic.getBrokerService().executor().schedule(safeRun(this::readMoreEntries),
100, TimeUnit.MILLISECONDS);
```
--
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]