Skip to content

Revise RedisKeyValueAdapter to support lifecycle #2959

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 3 commits into from
Closed

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented Aug 7, 2024

RedisKeyValueAdapter is now a lifecycle bean participating in Spring's SmartLifecycle support. Sticking to Lifecycle aligns with lifecycle support in RedisConnectionFactory where connections are stopped upon shutdown.

Previously, RedisKeyValueAdapter stopped connections upon destroy() causing a delayed shutdown behavior that was out of sync with its RedisConnectionFactory.

Closes #2957

mp911de added 3 commits August 7, 2024 10:21
RedisKeyValueAdapter is now a lifecycle bean participating in Spring's SmartLifecycle support. Sticking to Lifecycle aligns with lifecycle support in RedisConnectionFactory where connections are stopped upon shutdown.

Previously, RedisKeyValueAdapter stopped connections upon destroy() causing a delayed shutdown behavior that was out of sync with its RedisConnectionFactory.
Reorder methods, reformat code.
@mp911de mp911de marked this pull request as ready for review August 7, 2024 09:01
@mp911de mp911de added the type: enhancement A general enhancement label Aug 7, 2024
christophstrobl pushed a commit that referenced this pull request Aug 8, 2024
RedisKeyValueAdapter is now a lifecycle bean participating in Spring's SmartLifecycle support. Sticking to Lifecycle aligns with lifecycle support in RedisConnectionFactory where connections are stopped upon shutdown.

Previously, RedisKeyValueAdapter stopped connections upon destroy() causing a delayed shutdown behavior that was out of sync with its RedisConnectionFactory.

Closes: #2957
Original Pull Request: #2959
christophstrobl pushed a commit that referenced this pull request Aug 8, 2024
Reorder methods, reformat code.

Original Pull Request: #2959
@christophstrobl christophstrobl deleted the issue/2957 branch August 8, 2024 13:24
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LettuceConnectionFactory lifecycle stops connections before depending components are stopped
2 participants