Skip to content

Deadlock in obtaining Redis connection #1177

@yarodinD

Description

@yarodinD

Hello.
I'm using the following combination:
Spring Boot 2.1.1, spring-cloud-dependencies Greenwich.RC2, spring-boot-starter-data-redis 2.1.1, spring-session-data-redis 2.1.2, spring-cloud-starter-sleuth. Java 11

The Redis is accessed by using sentinel in front of it.

This fails because the main thread blocks while trying to get a Redis connection from lettuce.

Any other combination works: Going to redis directly instead of going through sentinel makes it work, switching to Jedis instead works, using lettuce 5.0 instead of 5.1 works also.
When I either leave sleuth or spring-session-data-redis out, the service starts again.

Thread dump is attached.

thread_dump_greenwich_rc2.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions