Sonar Build (Master) - https://sonar.spring.io/dashboard/index/org.springframework.amqp:spring-amqp-dist

Build: #2513 was successful Scheduled with changes by Gary Russell

Build result summary

Details

Completed
Duration
8 minutes
Labels
None
Agent
bamboo-11.af.pivotal.io
Revision
f98eb5beedfa3d7103bb5438ed4c3537b8090de7 f98eb5beedfa3d7103bb5438ed4c3537b8090de7
First to pass since
#2512 (Scheduled – )

Code commits

Author Commit Message Commit date
Gary Russell Gary Russell f98eb5beedfa3d7103bb5438ed4c3537b8090de7 f98eb5beedfa3d7103bb5438ed4c3537b8090de7 GH-923: Fix start delay for @Lazy @RabbitListener
Fixes https://github.com/spring-projects/spring-amqp/issues/923

While checking for missing or mis-matched queues, a lazily-loaded
listener container can deadlock for 60 seconds.

This occurs if the `allBeanNamesByType` cache does not currently have
an entry for `Queue` (e.g. cleared by registering a singleton).
When lazy beans are referenced, the `RabbitListenerEndpointRegistry`
starts the container and `start()` waits for the consumers to start.
Getting a reference to the lazy bean holds the `singletonObjects`
lock, which is required by the consumer(s) to get the `Queue` beans
to check.

Add a test case to demonstrate the issue.

Disable the redeclaration logic during the initial start of such a
container.

**cherry-pick to 2.1.x**

JIRA issues

IssueDescriptionStatus
Unknown Issue TypeGH-923Could not obtain issue details from JIRA