-
Notifications
You must be signed in to change notification settings - Fork 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
Check existing credits on the line before adding new credits #26637
Comments
After investigation, service bus synchronous client will check the credits on the link by using Here is some code snippet: Lines 554 to 622 in f24f525
|
@ZejiaJiang Could you please let me know which version of the library it has been fixed in? |
Hi Sohan, the codes shows that the latest fix is in v7.5.1. And we recommand you use the latest version which is v7.7.0. |
Thanks @ZejiaJiang. We will upgrade to the latest version. |
Say there is a call to
ServiceBusReceiverClient.receiveMessages()
asking for 100 messagesToday, the next call to receiveMessages() for another 100 messages will result in 70 credits being added to the line ignoring the fact that the line already has 60 credits from the first call. Now there are 130 credits on the line resulting in the extra messages being sent to the buffer where they can potentially get expired before the next receive call
This issue is logged after a discussion with @shankarsama to investigate if we can check the number of remaining credits on the line and adjust the new credits to add appropriately
Ideal behavior:
cc @conniey, @anuchandy, @JoshLove-msft, @shankarsama, @yvgopal
The text was updated successfully, but these errors were encountered: