Remove manual ShutdownSignalException handling, rely on RabbitMQ auto-recovery. #250
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
During AWS RabbitMQ maintenance windows, applications experienced connection recovery failures with errors like:
Root Cause: Manual recovery logic in shutdown callbacks was racing with RabbitMQ's built-in auto-recovery mechanism, causing conflicts when both tried to recreate channels and consumers simultaneously.
How I tested the changes:
Environment: 3-node RabbitMQ cluster with HAProxy load balancer simulating AWS MQ Multi-AZ maintenance scenarios using Docker containers.
Test Scenario: Simulated AZ failures with connection termination using custom maintenance messages (CONNECTION_FORCED - Node was put into maintenance mode) and monitored consumer recovery behavior during planned maintenance windows.
One service using the extension on 2 different ports (8080 and 8081) to simulate Kubernetes pods behavior, allowing us to test concurrent connection recovery scenarios across multiple application instances.
Results:
Before Changes:
After Changes: