Skip to content
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

Shutdown from redissonclient in spring boot environment leads to excpetions #132

Open
stefan-g opened this issue Oct 20, 2022 · 0 comments

Comments

@stefan-g
Copy link

The issue occurs with embedded-redis:0.7.3 (minor version works). The reason is at AbstractRedisInstance#start() the method installExitHook() is called. In spring boot environment the shutdownhook is executed before the destroy method of beans.

In combination with redissonClient this leads to following excptions:
[isson-netty-2-4] o.r.c.h.ErrorsLoggingHandler : Exception occured. Channel: [id: 0xebd17019, L:/127.0.0.1:57110 - :localhost/127.0.0.1:6799]
java.io.IOException: Eine vorhandene Verbindung wurde vom Remotehost geschlossen
at sun.nio.ch.SocketDispatcher.read0(Native Method) ~[?:1.8.0_232]

It would be good if installExitHook() could be disabled by a config flag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant