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
I searched in the issues and found nothing similar.
Read release policy
I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.
Version
Pulsar 4.0.1
Minimal reproduce step
Exact steps to reproduce aren't yet confirmed.
This problem was faced in a test where there was a large number of consumers that were scaled in a way where consumers were added and removed. The problem was noticed at the end of the test case, where all messages didn't get delivered to consumers and remained in the backlog.
In the topic stats for the subscription, msgInReplay showed a positive value and in internal stats for the subscription subscriptionHavePendingRead was true. By looking at the code, it seems to be a case that isn't handled for PersistentDispatcherMultipleConsumers/PersistentStickyKeyDispatcherMultipleConsumers.
What did you expect to see?
The cursor shouldn't go into completely into "waiting" state when there are messages in the replay queue.
What did you see instead?
Messages in the replay queue don't get dispatched to consumers.
Anything else?
No response
Are you willing to submit a PR?
I'm willing to submit a PR!
The text was updated successfully, but these errors were encountered:
There seems to be a bug in this behavior so that it didn't catch the case that was encountered. One possible reason for this is that a consumer didn't have permits when the unblocking happened. There would need to be some logic to handle that case.
It looks like this piece of code triggers a re-read here. I tried the related test cases, but no errors occurred. Could you provide more details about what you meant by "permit"? @lhotari
It looks like this piece of code triggers a re-read here. I tried the related test cases, but no errors occurred. Could you provide more details about what you meant by "permit"? @lhotari
Search before asking
Read release policy
Version
Pulsar 4.0.1
Minimal reproduce step
Exact steps to reproduce aren't yet confirmed.
This problem was faced in a test where there was a large number of consumers that were scaled in a way where consumers were added and removed. The problem was noticed at the end of the test case, where all messages didn't get delivered to consumers and remained in the backlog.
In the topic stats for the subscription,
msgInReplay
showed a positive value and in internal stats for the subscriptionsubscriptionHavePendingRead
was true. By looking at the code, it seems to be a case that isn't handled for PersistentDispatcherMultipleConsumers/PersistentStickyKeyDispatcherMultipleConsumers.What did you expect to see?
The cursor shouldn't go into completely into "waiting" state when there are messages in the replay queue.
What did you see instead?
Messages in the replay queue don't get dispatched to consumers.
Anything else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: