-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Service Bus] Batching receiver in receiveAndDelete mode loses messages when working with large number of messages #5757
Comments
When will this be merged and released? We are seeing this exact issue. I don't think it matters on the batch size. We see this issue with a batch size of 20. |
Thanks for reporting @soates We are working on the fix at the moment and should have a patch update ready soon. Meanwhile, can you share which version of the service bus library you are currently using? |
Hey, we are using version 1.1.0. We really want to use this package in production but are running into many issues which we did not expect with the stability of this package.. |
@soates We should be able to get the patch update out by tomorrow. Can you create a new issue for all the other issues you are finding with the package? We would like to help in any way we can and would appreciate any feedback you have to make the package better. |
@soates This bug has been fixed in the latest version (1.1.1) of the Thanks for your patience. |
Thanks for working with Microsoft on GitHub! Tell us how you feel about your experience using the reactions on this comment. |
Some details on the root cause for this bug for future reference:
In PR #6265, we remove this timer when |
While we practically have seen the issue so far in just the For peekLock mode, this may result in delivery count of messages getting incremented if the messages get received over link and not by our code - which may be problematic across large number of requests? The concern about lock getting lost on messages seems to be an expected service behavior and may be something to address as well. (Most likely by the user. From SDK side, could so by disallowing receivers in peekLock mode to hold onto messages for too long, or use autoLockRenewal (Sorry if there was an another issue already addressing this cause I recall discussing this earlier) |
Describe the bug
The batching receiver in Service Bus does not work as expected in receiveAndDelete mode i.e., when fetching large number of messages, a significantly different number of messages are being taken off.
For example, when doing receiveMessages(300), often times about only 100 messages are actually received and about 120 messages are deleted from the Service Bus entity.
To Reproduce
Expected behavior
As is the case with
peekLock
mode, the exact number of messages requested are to be retrieved preferably. And the number of messages retrieved must equal the number of messages deleted from the Service Bus entity.The text was updated successfully, but these errors were encountered: