Skip to content

Allow RedisConnectionFactories to be initialized as part of the context lifecycle #2866

Closed
@christophstrobl

Description

@christophstrobl

In the current arrangement the RedisConnectionFactory implementations are implementing both, InitializingBean and SmartLifecycle (See also #2502). Though, for historic reasons they eagerly try to connect to the Redis server already in afterPropertiesSet() which is not in line with the actual intent of the method aiming to verify properties leaving the startup to Lifecycle#start().

For Checkpoint restore and CDS training runs we'd need to move this arrangement into its desired state without breaking existing applications potentially relying on the eager initialization of the connection factory.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions