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

Fixing a rare case of AuthorizationFailedException #373

Merged
merged 1 commit into from
Jun 25, 2019

Conversation

yvgopal
Copy link
Member

@yvgopal yvgopal commented Jun 25, 2019

Some customers use a cached QueueClient or MessageSender to send messages. If a client or sender remains idle for 15 minutes, the service closes the connection as idle connection. In some rare cases, the service closes the connection just when the client is trying to open a link on the same connection. If the connection is closed by service after CBS token is sent, link open operation was failing with AuthorizationFailed exception.

…the exact time the client is creating a link.

If the connection is closed by service after CBS token is sent, link open operaiton was failing with AuthorizsationFailed exception.
@yvgopal yvgopal requested review from nemakam and binzywu June 25, 2019 10:53
@yvgopal yvgopal merged commit 650ee00 into Azure:master1.0 Jun 25, 2019
// Connection closed after sending CBS token. Happens only in the rare case of azure service bus closing idle connection, just right after sending
// CBS token but before opening a link.
TRACE_LOGGER.warn("Idle connection closed by service just after sending CBS token. Very rare case. Will retry.");
ServiceBusException exception = new ServiceBusException(true, "Idle connection closed by service just after sending CBS token. Please retry.");
Copy link
Contributor

Choose a reason for hiding this comment

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

just after sending CBS token [](start = 100, length = 28)

Wonder if this is too much of details mentioning about CBS.

// Connection closed after sending CBS token. Happens only in the rare case of azure service bus closing idle connection, just right after sending
// CBS token but before opening a link.
TRACE_LOGGER.warn("Idle connection closed by service just after sending CBS token. Very rare case. Will retry.");
ServiceBusException exception = new ServiceBusException(true, "Idle connection closed by service just after sending CBS token. Please retry.");
Copy link
Contributor

@nemakam nemakam Jun 26, 2019

Choose a reason for hiding this comment

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

ServiceBusException [](start = 39, length = 19)

Should this be SBCommunicationException?

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