Azure / Azure/azure-service-bus-java

MessageAndSessionPump closes the connection on the receipt of SIGTERM.

Open
#412 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.