New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DefaultLifecycleProcessor hangs on shutdown when stopping with internalJmsListenerEndpointRegistry [SPR-14233] #18807
Comments
Stéphane Nicoll commented Thanks for the report, I was able to reproduce the issue. Investigating... |
Dirk commented Great - first step to find a solution ;-) |
Stéphane Nicoll commented Alright, the issue is fixed on master. Juergen Hoeller can you please backport that to It turns out that |
Dirk commented Wow - that was really fast! Thanks! I will test it on 4.2.6.BUILD-SNAPSHOT. I will let you know if that's working now for us! |
Juergen Hoeller commented A |
Dirk commented I would expect that this not completely fixes my issues, since the hang-up happens even if I restart the MessageListenerContainer again. But I will give it a try ;-) . |
Dirk commented Am I looking in the wrong place, or is the build still from yesterday 13:20 o'clock? http://repo.spring.io/snapshot/org/springframework/spring-core/4.3.0.BUILD-SNAPSHOT/spring-core-4.3.0.BUILD-20160502.132016-367.jar But comparing the time, that could nevertheless contain your changes, does it? |
Stéphane Nicoll commented Both builds have completed successfully within 24h so they will contain the fix. Have you tried and it didn't work so you're asking if the fix is in? That's quite confusing... |
Dirk commented Sorry for the confusion and yes, I tried this version already yesterday and still had problems. Thanks for this quick fix and your great work! I know why we are planning to switch from JEE/Appservers to Spring/Spring-Boot wherever possible ;-) |
Stéphane Nicoll commented Alright, that's great to hear. Thanks for testing! |
Dirk opened SPR-14233 and commented
We are having the following configuration:
The application runs fine but after shutdown, the DefaultLifecycleProcessor is waiting 30 seconds and then prints:
This happens only, if one of the JMSListener gets stopped before by doing:
If I comment one listener out, or keep both JMSListener running - the timeout does not happen and the application shuts down immediately.
The app hangs even if no work has been processed. I reduced the JMSListener
to contain no own business logic at all:
The problem arises both with Atomikos and Bitronix.
So to me, it looks like you need to have 2 JMSListeners and need to stop one of them to reproduce this problem.
Any help would be appreciated.
Affects: 4.2.5
Referenced from: commits 85675fb, 85faeef, 09b45d2, e45d33f, f83cbff
The text was updated successfully, but these errors were encountered: