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

[BUG] - ServiceBusSessionReceiver creation intermittently throwing ServiceBusConnection has already been closed and cannot perform the requested operation error. #43470

Open
wk-ashish opened this issue Apr 17, 2024 · 1 comment
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Bus

Comments

@wk-ashish
Copy link

wk-ashish commented Apr 17, 2024

Library name and version

Azure.Messaging.ServiceBus 7.17.2

Describe the bug

ServiceBusSessionReceiver intermittently throwing ServiceBusConnection has already been closed and cannot perform the requested operation error.

DEBUG log

An exception occurred while creating a ServiceBusSessionReceiver (Namespace '', Entity path ''). Error Message: 'System.ObjectDisposedException: ServiceBusConnection has already been closed and cannot perform the requested operation.
Object name: 'ServiceBusConnection'.
   at Azure.Core.Argument.AssertNotDisposed(Boolean wasDisposed, String targetName)
   at Azure.Messaging.ServiceBus.ServiceBusConnection.ThrowIfClosed()
   at Azure.Messaging.ServiceBus.ServiceBusReceiver..ctor(ServiceBusConnection connection, String entityPath, Boolean isSessionEntity, ServiceBusReceiverOptions options, String sessionId, Boolean isProcessor, CancellationToken cancellationToken)'

Expected behavior

It should not produce this random errors

Actual behavior

Logs fill up with errors that are not errors

Reproduction Steps

  • Create Service Bus Topic subscription with session enabled
  • Create ServiceBusClient using Microsoft.Extensions.Azure.
  • Create CreateSessionProcessor using ServiceBusClient
  • Request StartProcessingAsync from created session processor.

Environment

No response

@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Bus labels Apr 17, 2024
Copy link

Thank you for your feedback. Tagging and routing to the team member best able to assist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Bus
Projects
None yet
Development

No branches or pull requests

2 participants