azure-service-bus-java icon indicating copy to clipboard operation
azure-service-bus-java copied to clipboard

MessageAndSessionPump closes the connection on the receipt of SIGTERM.

Open vlaguduva opened this issue 4 years ago • 0 comments

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:

vlaguduva avatar Mar 22 '21 17:03 vlaguduva