Skip to content

Conversation

@merlimat
Copy link
Contributor

@merlimat merlimat commented Jul 14, 2022

Motivation

If all the messages in a topic have the same fixed delay, then there is no reason to track the entire set of messages in the priority queue, since the messages will have to be delivered in FIFO order.

If we identify that this is the case, we need to switch into a different mode, where we pause the scanning of the topic and instead we just rely on the timer task from the delay-tracker which will get triggered for the 1st message to be delivered.

  • doc-not-needed

@merlimat merlimat added the doc-not-needed Your PR changes do not impact docs label Jul 14, 2022
@merlimat merlimat added this to the 2.11.0 milestone Jul 14, 2022
@merlimat merlimat self-assigned this Jul 14, 2022
@merlimat merlimat force-pushed the simpler-delay-track branch from e5be9c0 to 8400204 Compare July 14, 2022 23:01
@merlimat merlimat merged commit c48a324 into apache:master Jul 15, 2022
@merlimat merlimat deleted the simpler-delay-track branch July 15, 2022 16:01
merlimat added a commit that referenced this pull request Jul 15, 2022
… are fixed (#16609)

* Avoid tracking the delays of all the message when we detect that they are fixed

* Use tick time to avoid clock skews across different producers
merlimat added a commit that referenced this pull request Jul 15, 2022
… are fixed (#16609)

* Avoid tracking the delays of all the message when we detect that they are fixed

* Use tick time to avoid clock skews across different producers
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jul 19, 2022
… are fixed (apache#16609)

* Avoid tracking the delays of all the message when we detect that they are fixed

* Use tick time to avoid clock skews across different producers

(cherry picked from commit 871fe36)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants