You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] When using the delayed message delivery of Apache pulsar version 2.10, the message is not received at the expected delay time #18399
I searched in the issues and found nothing similar.
Version
2.10.0
Minimal reproduce step
We produce messages in the following way: MessageId messageId=producer. newMessage() deliverAfter(time, timeUnit).value(msg.getBytes(StandardCharsets.UTF_8)).send();
In the early stage of production (when the amount of data is small), what can be prepared will be executed at the expected time of delay, but when the amount of data is large, there will be different degrees of delay, even more than one day, one hour, etc .
In addition, the subscription type we use is: subscriptionType=SubscriptionType Shared mode, we can provide our consumer initialization code
In the deliverAfter mode, time is specified as 10, and the unit is minute. After the message is produced, it should be executed within the specified delay time of each message
What did you see instead?
Through the analysis of logs and our own business library, we found that a large number of messages were overstocked and the execution was delayed. For example, we used the deliverAfter mode. The time was specified as 10, and the unit was minutes. However, the execution may be delayed for 1 hour, 2 hours, or even one day.
Anything else?
Cluster configuration, 3POD is 16c16g per pod, and the daily traffic is about 40w/day
I searched in the issues and found nothing similar.
Version
2.10.0
Minimal reproduce step
We produce messages in the following way: MessageId messageId=producer. newMessage() deliverAfter(time, timeUnit).value(msg.getBytes(StandardCharsets.UTF_8)).send(); In the early stage of production (when the amount of data is small), what can be prepared will be executed at the expected time of delay, but when the amount of data is large, there will be different degrees of delay, even more than one day, one hour, etc .
In addition, the subscription type we use is: subscriptionType=SubscriptionType Shared mode, we can provide our consumer initialization code
In the deliverAfter mode, time is specified as 10, and the unit is minute. After the message is produced, it should be executed within the specified delay time of each message
What did you see instead?
Through the analysis of logs and our own business library, we found that a large number of messages were overstocked and the execution was delayed. For example, we used the deliverAfter mode. The time was specified as 10, and the unit was minutes. However, the execution may be delayed for 1 hour, 2 hours, or even one day.
Anything else?
Cluster configuration, 3POD is 16c16g per pod, and the daily traffic is about 40w/day
Thanks @como-ca for the report. This was reported on Pulsar 2.10, which is no longer supported; the supported releases are 4.0.x, 4.2.x and 5.0.x. Much of the code involved has changed since, and the problem hasn't been confirmed on a current release, so I'm closing it as part of cleaning up old reports. If you still see it on a supported release, please open a new issue with the version and steps to reproduce, and link this one.
Activity
liangyuanpeng commentedon Nov 10, 2022
Could you try it on 2.10.2?
jesse996 commentedon Dec 10, 2022
the delay message not working
i expect to receive it after 6 minutes,but actually i receive it immediately. pulsar vertion:2.10.2
github-actions commentedon Jan 10, 2023
The issue had no activity for 30 days, mark with Stale label.
henghengdh commentedon Apr 3, 2023
Have you solved the problem?
github-actions commentedon May 5, 2023
The issue had no activity for 30 days, mark with Stale label.
sacred-virus commentedon Mar 15, 2024
Is it solved in new version? @como-ca
merlimat commentedon Oct 24, 2026
Thanks @como-ca for the report. This was reported on Pulsar 2.10, which is no longer supported; the supported releases are 4.0.x, 4.2.x and 5.0.x. Much of the code involved has changed since, and the problem hasn't been confirmed on a current release, so I'm closing it as part of cleaning up old reports. If you still see it on a supported release, please open a new issue with the version and steps to reproduce, and link this one.