Azure / Azure/azure-service-bus-java
MessageAndSessionPump closes the connection on the receipt of SIGTERM.
- Dominant language
- Java
- Stars
- 62
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Description
## Actual Behavior
1. On receipt of SIGTERM, MessageAndSessionPump closes the connection to service bus even though close/closeAsync is not called on queueClient.
2. I have a spring boot application that handles the SIGTERM for graceful shutdown - as part of graceful shutdown, the code calls queueClient.closeAsync to close the connection to Azure Service bus. Unfortunately, MessageAndSessionPump closes the connection (log: Closing message and session pump on entity 'my_queue') much ahead of queueClient.closeAsync call.
## Expected Behavior
1. MessageAndSessionPump should not close the connection until the queueClient.closeAsync is called.
## Versions
- OS platform and version:
- Maven package version or commit ID:
Contributor guide
Assessment
This issue has not been assessed yet.