Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20693

camel-azure-servicebus: Service Bus Listener Not Stopping After Stopping Route in Latest Camel Version(4.4.0)

    XMLWordPrintableJSON

Details

    • Unknown
    • Regression

    Description

      In version 4.4.0 or later of azure-servicebus, there seems to be an issue where the Service Bus listener continues running even after killing the route. This behavior is different from version 4.3.0, where the listener stops as expected after the route is killed.

      Reproduction Steps:

      1. Open the attached intellij project
      2. Set connectionString value in AzureServiceBusRoute.java
      3. Run the DemoApplication.java
      4. Let it run for a while to ensure connection is active after starting the route
      5. After killing the route connection is lost and reconnecting again
      6. Observe that the listener still continues to receive messages despite the route being stopped.
      7. Compare this behavior with version 4.3.0(azure-messaging-servicebus:7.14.7), where the listener stops as expected after killing the route.
      8. Uncomment respective dependencies in build.gradle file and see it is working in older version(azure-messaging-servicebus:7.14.7)

      Expected Behavior:

      After stopping the Camel route, the Service Bus listener should also stop receiving messages, as observed in version 4.3.0.

      Actual Behavior:

      Even after stopping the Camel route, the Service Bus listener continues to receive messages, indicating that it's still active.

      This behavior appears to be a regression of bug https://issues.apache.org/jira/browse/CAMEL-19262 of azure-servicebus.

      Attachments

        1. CamelAzureServiceBusBug.zip
          169 kB
          harshithareddye

        Issue Links

          Activity

            People

              Unassigned Unassigned
              harshithareddy harshithareddye
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: