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] Create a programmatically useful code for when a session is not available #19113

Merged
merged 3 commits into from
Sep 14, 2022

Conversation

richardpark-msft
Copy link
Member

@richardpark-msft richardpark-msft commented Sep 14, 2022

Adding a new error Code (CodeTimeout) for when we get back a com.microsoft:timeout error from Service Bus. The primary use is if we are doing an AcceptNextSessionFor<Entity>() and there aren't any available sessions.

This should allow customers to figure out if there's a genuine failure or if their session-enabled queue/subscription is simply "empty".

This also improves the tests and adds in some more customer exposed examples for reading through a a queue of sessions.

Fixes #19039

ripark added 2 commits September 13, 2022 18:18
…osoft:timeout error from Service Bus. The primary use is if we are doing an AcceptNextSessionFor<Entity>() and there aren't any available sessions.

This should allow customers to figure out if there's a genuine failure or if their session-enabled queue/subscription is "empty".

Fixes Azure#19039
@richardpark-msft
Copy link
Member Author

/azp run go - azservicebus

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Co-authored-by: Ryan Davis <ryepup@gmail.com>
@richardpark-msft richardpark-msft merged commit 523337c into Azure:main Sep 14, 2022
@richardpark-msft richardpark-msft deleted the sb-accept-session branch September 14, 2022 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[azservicebus] timeout error when accepting next session is not exported type
3 participants