Skip to content

RedisConnectionFailure because of Spring Session inactivity #602

@adithshenoy

Description

@adithshenoy

Hi @rwinch ,

We are using Spring Session 1.1.1 and have set a timeout of 30 minutes.

After the application is inactive for about 20 minutes ( for example) , when i come and access something on the application, I get the RedisConnectionFailure exception. But this is very inconsistent as immediately if I make the request again, it works. Any idea why this might be happening?

{"error":"Internal Server Error","exception":"org.springframework.data.redis.RedisConnectionFailureException","message":"Unexpected end of stream.; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Unexpected end of stream."}

Also, request.getSession(false) throws null, even when session exists at times!

Regards,
Adith Shenoy

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions