microsoft / azure-spring-boot

Spring Boot Starters for Azure services
MIT License
374 stars 460 forks source link

Queue trying to recover despite active consumer #953

Closed anshul733 closed 2 years ago

anshul733 commented 2 years ago

For past few days we saw that, one queue which has schdeduling enabled has got messages piling up and the Azure Kubernetes (AKS )Sprint boot consumer is not able consume all of them. In our AKS consumer app, the log is coming as

"A JMS MessageConsumer has been closed: JmsConsumerInfo: { ID:48d2e6b3-9b29-4fb2-846a-32b7a184e77b:80:1:1, destination = recon.q }"

Setup of JMS message listener invoker failed for destination 'recon.q' - trying to recover. Cause: The Session was closed due to an unrecoverable error.

we are using Spring boot (v2.6.6) JMS consumer, the JMS dependencies listed are as

    <!--JMS Dependencies Start-->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-jms</artifactId>
        <version>5.3.18</version>
        </dependency>
    <dependency>
        <groupId>org.apache.qpid</groupId>
        <artifactId>qpid-jms-client</artifactId>
        <version>1.6.0</version>
        </dependency>
    <dependency>
        <groupId>org.apache.geronimo.specs</groupId>
        <artifactId>geronimo-jms_2.0_spec</artifactId>
        <version>1.0-alpha-2</version>
    </dependency>
    <!--JMS Dependencies End-->
saragluna commented 2 years ago

Thanks for reaching out @anshul733, I saw this is a duplicate of https://github.com/Azure/azure-sdk-for-java/issues/30237, so I'm going to close this one.