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

Close client and check for link id when link is stolen #16977

Merged
merged 2 commits into from
Oct 30, 2020

Conversation

srnagar
Copy link
Member

@srnagar srnagar commented Oct 29, 2020

This PR closes the EventHubAsyncClient after fetching the list of partitions successfully as the client would have opened the connection and wouldn't need to use it after the first call to get the partitions. So, this PR will eagerly close the connection instead of the service closing the connection after idle timeout.

Also, the AmqpReceiveLinkProcessor checks the link name to pass on the error when a link is stolen. If the current link is different from the link that was stolen, then downstream doesn't need to be informed of this error.

Fixes #14976

Copy link
Contributor

@YijunXieMS YijunXieMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@srnagar srnagar merged commit 07a953c into Azure:master Oct 30, 2020
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.

[BUG] ManagementChannel throw exceptions after client closing
3 participants