question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Broken subsequence of delayed messages

See original GitHub issue

Describe the bug Delayed messages to shared topic breaks subsequence of messages and delivered earlier than expected.

To Reproduce Steps to reproduce the behavior:

  1. Setup local standalone pulsar
  2. Send messages every 20ms with the same deliverAt timestamp 10000ms and with payload of millisecond when sending was started.
  3. Log received messages payload.

I start receiving all messages after 9 seconds and it I have in log:

9001ms
1ms
21ms
41ms
61ms
81ms
...
8981ms
(here should be 9001ms)
9021ms
9041ms
...

Expected behavior Two expectations:

  1. Most important I expect first message to be received is message ‘1ms’ and message ‘9001ms’ after ‘8981ms’.
  2. I expect start receiving messages after 10 seconds

Issue is reproduced in 2.8.0 and 2.9.1

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
mattisonchaocommented, Mar 18, 2022

Hi, @zubchenok

I have already reproduced both problems, I will try to fix them ASAP.

1reaction
mattisonchaocommented, Jul 19, 2022

Hi, @zubchenok Sorry for missing this issue. The second issue:

I expect start receiving messages after 10 seconds

You can set isDelayedDeliveryDeliverAtTimeStrict=true to solve this problem.(broker version greater than or equals to 2.9.3)#16068 or set delayedDeliveryTickTimeMillis=1(broker version less than or equals to 2.9.3)

Read more comments on GitHub >

github_iconTop Results From Across the Web

[PIP-?] Optimization of massive delayed message scenarios
Delayed messages are a common scenario in the Message business system. For example, group-opening reminders in group buying activities, ...
Read more >
UML 2 Tutorial - Sequence Diagram - Sparx Systems
In the following diagram, the first message is a synchronous message (denoted ... Break fragment models an alternative sequence of events that is...
Read more >
Delayed Text Messages Problem: Why and How to Fix
Confirm the process by tapping on “Reset Settings”. text message delays. See if the problem of delayed messages continues. 4. Clear Cache Data...
Read more >
2017 chevy malibu door lock problem - Belle Arti Brindisi
with inside switch I can unlock all Could a broken wire in the drivers door (a common problem from what I've been reading...
Read more >
R Ffxi - unica e sensual
Final Fantasy XI R finally scrapped after numerous delays. ... Reply to the latest "tell" message player you recieved "tell" message from.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found