Skip to content

RedisMessageListenerContainer prevents app startup on missing connection #2334

Closed
@kinglite

Description

@kinglite

When no Redis connection is available on Spring-Boot startup, the bean creation fails and throws an Exception that will cause the start procedure to fail and exit the application.

This is the part of the code in question:
https://github.com/spring-projects/spring-data-redis/blob/main/src/main/java/org/springframework/data/redis/listener/RedisMessageListenerContainer.java#L1169

In comparison to branch 2.6.x this was inside a try/catch (I think at least, as it seems to be a completely new implementation)

(https://stackoverflow.com/questions/72436006/spring-boot-2-7-redis-pub-sub-fails-startup-on-missing-redis-connection)

Metadata

Metadata

Assignees

Labels

status: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions