harshithareddye created CAMEL-20693:
---------------------------------------
Summary: camel-azure-servicebus: Service Bus Listener Not Stopping
After Stopping Route in Latest Camel Version(4.4.0)
Key: CAMEL-20693
URL: https://issues.apache.org/jira/browse/CAMEL-20693
Project: Camel
Issue Type: Bug
Components: camel-azure, camel-azure-eventhubs
Affects Versions: 4.4.1, 4.4.0, 4.4.2
Reporter: harshithareddye
Attachments: CamelAzureServiceBusBug.zip
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:*
# Open the attached intellij project
# Set connectionString value in AzureServiceBusRoute.java
# Run the DemoApplication.java
# Let it run for a while to ensure connection is active after starting the
route
# After killing the route connection is lost and reconnecting again
# Observe that the listener still continues to receive messages despite the
route being stopped.
# Compare this behavior with version 4.3.0(azure-messaging-servicebus:7.14.7),
where the listener stops as expected after killing the route.
# 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{}}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)