If you've configured an ErrorHandler on your Spring AMQP listener container to handle message processing exceptions, you may have introduced a silent, unmonitorable deadlock that reports healthy while permanently stalling message consumption.
Here is what is happening: each incoming message consumes a link credit from the RabbitMQ broker. When your ErrorHandler throws an exception (or when the message processing throws before the ErrorHandler runs), that credit is consumed and not released. After approximately 100 consecutive failed messages—well within the realm of a temporary downstream outage—your consumer exhausts all available credits. The container thread remains alive and polling, so isRunning() returns true. The broker, however, will not deliver any new messages. Your consumer is deadlocked, and every health check, liveness probe, and monitoring signal will report everything is fine.
This is the critical insight: the ErrorHandler mitigation you implemented to handle exceptions is actively consuming the resource needed to continue receiving messages after those exceptions occur. The Spring AMQP abstraction does not encapsulate this behavior. You are required to understand broker-level link credit semantics to write safe message listeners—a violation of the abstraction promise that Spring AMQP makes.
The operational reality is worse than the technical flaw. The monitoring infrastructure you depend on (health endpoints, container probes, heartbeat checks) universally relies on isRunning() or equivalent signals. A visibly deadlocked consumer triggers investigation within minutes. A consumer that reports healthy while stalled receives attention only after someone notices a business metric dropped. This is the blast radius: the failure mode is invisible to exactly the alerting systems designed to catch failures.
What to check: audit your listener container configurations for ErrorHandler implementations, particularly any that throw exceptions or log without re-throwing. Calculate your error throughput tolerance—if your downstream can sustain more than roughly 100 consecutive failures before recovering, your consumer will stall. Consider implementing a credit-monitoring sidecar or explicitly configuring prefetch limits with explicit understanding of the failure cascade. The safer pattern may be to acknowledge that ErrorHandler cannot safely participate in credit accounting, and reserve credits for the happy path only.