lhotari commented on code in PR #23226:
URL: https://github.com/apache/pulsar/pull/23226#discussion_r1735924823
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentDispatcherMultipleConsumers.java:
##########
@@ -85,6 +85,10 @@
*/
public class PersistentDispatcherMultipleConsumers extends
AbstractDispatcherMultipleConsumers
implements Dispatcher, ReadEntriesCallback {
+ // rescheduling a read after no entries are dispatches will be delayed by
this duration using a backoff
+ private static final int RESCHEDULE_READ_INITIAL_DELAY_MS = 100;
+ // maximum delay for rescheduling a read after no entries are dispatched
+ private static final int RESCHEDULE_READ_INITIAL_MAX_DELAY_MS = 5000;
Review Comment:
This is now addressed. I also made the max delay 1000 instead of 5000.
--
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]