spring-session icon indicating copy to clipboard operation
spring-session copied to clipboard

Redis session has no expiration set on high load

Open verve111 opened this issue 9 months ago • 0 comments

Describe the bug Redis sessions with no expiration time are created even if the ReactiveRedisSessionRepository.setDefaultMaxInactiveInterval(Duration) is set. This happens when the app is high loaded

To Reproduce Let's load the app using JMeter with 75 threads/users. Each request invokes the endpoint that creates a new session using session.changeSessionId(). About 10 minutes later we should notice that among sessions with ttl set, there is a few sessions with no ttl appear

Expected behavior If ReactiveRedisSessionRepository.setDefaultMaxInactiveInterval(Duration) then all created sessions should have ttl set, even on high loads

verve111 avatar Mar 24 '25 05:03 verve111