Skip to content

[Service Bus] Better error message when session cannot be locked#2822

Merged
ramya-rao-a merged 1 commit into
Azure:masterfrom
ramya-rao-a:session-cannot-be-locked
May 11, 2019
Merged

[Service Bus] Better error message when session cannot be locked#2822
ramya-rao-a merged 1 commit into
Azure:masterfrom
ramya-rao-a:session-cannot-be-locked

Conversation

@ramya-rao-a
Copy link
Copy Markdown
Contributor

@ramya-rao-a ramya-rao-a commented May 11, 2019

When creating a receiver for a session enabled Queue/Subscription, and Service Bus cannot get a lock on the session, it sometimes creates receiver nevertheless but with no sessionId set on it. We have been throwing SessionCannotBeLockedError in such cases.

The same error is thrown when user attempts to create a session receiver for a Queue/Subscription with sessions not enabled.

As part of the work being done for #2658, this PR updates the corresponding error message to be more clear

@ramya-rao-a ramya-rao-a requested a review from amarzavery May 11, 2019 06:23
@ramya-rao-a ramya-rao-a merged commit 6c5ee0b into Azure:master May 11, 2019
@ramya-rao-a ramya-rao-a deleted the session-cannot-be-locked branch May 11, 2019 06:47
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.

2 participants