Skip to content

Commit

Permalink
Allow to configure and disable the size of lookahead for detecting fi…
Browse files Browse the repository at this point in the history
…xed delays in messages (apache#17907)

(cherry picked from commit 5582674)
(cherry picked from commit 0705547)
  • Loading branch information
merlimat authored and nicoloboschi committed Jan 10, 2023
1 parent 2e38ef2 commit aac96bb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions conf/broker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,12 @@ isDelayedDeliveryDeliverAtTimeStrict=false
# fixed delays in messages in a different way.
delayedDeliveryFixedDelayDetectionLookahead=50000

# Size of the lookahead window to use when detecting if all the messages in the topic
# have a fixed delay.
# Default is 50,000. Setting the lookahead window to 0 will disable the logic to handle
# fixed delays in messages in a different way.
delayedDeliveryFixedDelayDetectionLookahead=50000

# Whether to enable acknowledge of batch local index.
acknowledgmentAtBatchIndexLevelEnabled=false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,12 @@ public class ServiceConfiguration implements PulsarConfiguration {
+ "logic to handle fixed delays in messages in a different way.")
private long delayedDeliveryFixedDelayDetectionLookahead = 50_000;

@FieldContext(category = CATEGORY_SERVER, doc = "Size of the lookahead window to use "
+ "when detecting if all the messages in the topic have a fixed delay. "
+ "Default is 50,000. Setting the lookahead window to 0 will disable the "
+ "logic to handle fixed delays in messages in a different way.")
private long delayedDeliveryFixedDelayDetectionLookahead = 50_000;

@FieldContext(category = CATEGORY_SERVER, doc = "Whether to enable the acknowledge of batch local index")
private boolean acknowledgmentAtBatchIndexLevelEnabled = false;

Expand Down

0 comments on commit aac96bb

Please sign in to comment.