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

ServiceBusReceiverAsyncClient Keep forever opened without errors #41828

Closed
josebarros2025 opened this issue Sep 12, 2024 · 5 comments
Closed
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 Workflow: 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

@josebarros2025
Copy link

Query/Question
Our prod env experiences annyoing errors like bellow, reading the specification, I see they are supposing the app must close the receiver, which doesnt make sense since a Spring boot application doesnt have an end, it always should be listening to new messages.

reactor.core.Exceptions$ErrorCallbackNotImplemented: com.azure.core.amqp.exception.AmqpException: onSessionRemoteClose connectionId[xxxxx], entityName[xxxx] condition[Error{condition=amqp:connection:forced, description='The connection was closed by container 'xxxx' because it did not have any active links in the past 300000 milliseconds. TrackingId:xxxx, SystemTracker:gateway10, Timestamp:2024-09-12T10:02:53', info=null}], errorContext[NAMESPACE: sb-shop-dev-in-01.servicebus.windows.net. ERROR CONTEXT: N/A, PATH: QUEUE_NAME]

Why is this not a Bug or a feature Request?
A clear explanation of why is this not a bug or a feature request?
The official docs won't provide real world examples on how to use the service bus client for applications like that.

Setup (please complete the following information if applicable):

  • OS: Any/ALL
  • IDE: IntelliJ / NA
  • Library/Libraries: com.azure:azure-messaging-servicebus:7.17.0

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • [X ] Query Added
  • [X ] Setup information Added
@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 Workflow: 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 Sep 12, 2024
Copy link

@anuchandy @conniey @lmolkova

Copy link

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

@anuchandy
Copy link
Member

anuchandy commented Sep 17, 2024

Hi @josebarros2025,

  1. we've updated the library avoid this error (reactor.core.Exceptions$ErrorCallbackNotImplemented) log in this pull request.
  2. I see your related comment in the issue, the discussed NPE as a result of session disconnect is addressed via this pull request.

Both of these changes are slated for September release which should happen in 1-2 weeks.

@anuchandy
Copy link
Member

Hello @josebarros2025, it looks like you’re closely monitoring a similar issue, 41736: #41736 (comment). Based on your comment, it appears you'll need to wait for the spring-cloud-azure-starter release.

I notice you've switched from ServiceBusReceiverAsyncClient to ServiceBusProcessorClient, which I wanted to originally suggest. The use of ServiceBusReceiverAsyncClient is generally discouraged considering the complexity it brings to the application - https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/servicebus/azure-messaging-servicebus/README.md#when-to-use-servicebusprocessorclient

@anuchandy
Copy link
Member

Hi @josebarros2025, based on your comment in the other thread, it appears you have managed to resolve the conflicts in Spring and could set the versions - service bus at 7.14.4, azure-core-amqp at 2.9.9, and azure-core at 1.52.0.

Copying your solution here as a reference for anyone who encounters it.

<azure.servicebus.version>7.17.4</azure.servicebus.version>

<dependency>
            <groupId>com.azure.spring</groupId>
            <artifactId>spring-cloud-azure-starter</artifactId>
            <version>${azure.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>com.azure</groupId>
                    <artifactId>azure-core</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.azure</groupId>
                    <artifactId>azure-core-amqp</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.azure</groupId>
            <artifactId>azure-core</artifactId>
            <version>1.52.0</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.azure</groupId>
            <artifactId>azure-core-amqp</artifactId>
            <version>2.9.9</version>
            <scope>compile</scope>
        </dependency>

I’ll go ahead and close this. Thanks!

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 Workflow: 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