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

Cleanup the local cache of redis connections after closing them #13122

Merged
merged 1 commit into from
Nov 5, 2020

Conversation

dhenneke
Copy link
Contributor

@dhenneke dhenneke commented Nov 4, 2020

The Redis extension crashes when using quarkus-dev after a hot reload. While it correctly closes all connections on shutdown, it forgets to clear the cache of reused redis connections. But since they are already closed, all calls from the new hot-reloaded application will fail with a java.lang.IllegalStateException: Client is closed.

The quick fix is to delete all RedisAPIContainer instances after closing them.

Copy link
Member

@machi1990 machi1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Thanks

@gsmet gsmet added this to the 1.10 - master milestone Nov 4, 2020
@gsmet gsmet added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Nov 4, 2020
@gsmet gsmet merged commit 244d9a1 into quarkusio:master Nov 5, 2020
@gsmet
Copy link
Member

gsmet commented Nov 5, 2020

Thanks! I included this change in 1.9.2.Final I'm going to release today.

@gsmet gsmet modified the milestones: 1.10 - master, 1.9.2.Final Nov 5, 2020
@dhenneke dhenneke deleted the feat/redis-exception branch November 5, 2020 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/waiting-for-ci Ready to merge when CI successfully finishes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants