Skip to content
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

[azservicebus] Fixing bug from #23893, where a message could be received in the mess… #23929

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

richardpark-msft
Copy link
Member

It was possible for the message releaser to receive a message, but not release it. When that happened the message would be locked by SB, but not released, so you'd see it constantly get redelivered but never see it in your code.

Added some tests for this scenario, and a lot of comments to explain how we (now) avoid it.
Also, go get -u'd all the deps, just to keep pace.

Fixes #23893

… message releaser, but not released, which would cause it to expire.

Added some tests for this scenario, and a lot of comments to explain how we (now) avoid it.

Also, go get -u'd all the deps, just to keep pace.
@richardpark-msft richardpark-msft marked this pull request as ready for review January 9, 2025 19:03
ripark added 3 commits January 9, 2025 13:33
- Fixing one of the tests - Receive() doesn't get called twice anymore.
- Fixing another test to account for sometimes getting more than a single message when doing the time.Nanosecond ReceiveMessages call.
…aser. There are better tests that cover the same area so removing this is no big deal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

azservicebus Receiver can improperly hold onto message indefinitely
2 participants