Skip to content

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

Merged
srnagar merged 2 commits into
Azure:masterfrom
srnagar:close-consumer
Oct 30, 2020
Merged

Close client and check for link id when link is stolen#16977
srnagar merged 2 commits into
Azure:masterfrom
srnagar:close-consumer

Conversation

@srnagar

@srnagar srnagar commented Oct 29, 2020

Copy link
Copy Markdown
Member

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

@ghost ghost added the Event Hubs label Oct 29, 2020

@YijunXieMS YijunXieMS left a comment

Copy link
Copy Markdown
Contributor

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