Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring session PRINCIPAL_NAME_INDEX_NAME is not getting cleaned up after session is expired #3287

Open
chittim412 opened this issue Dec 6, 2024 · 0 comments
Labels
status: waiting-for-triage An issue we've not yet triaged type: bug A general bug

Comments

@chittim412
Copy link

Describe the bug
"mysession:index:org.springframework.session.FindByIndexNameSessionRepository.PRINCIPAL_NAME_INDEX_NAME:user" not cleaned up in redis when the session is expired

recently we were facing similar issue in the production, the uncleaned entries were huge and seeing some performance issue
could you please help to resolve this

To Reproduce
https://github.com/chittim412/demo.git --> checkout master
read readme file
image

libraries
spring boot 2.7.18
spring-session-data-redis:2.7.4
lettuce-core:6.1.10.RELEASE
redis running on docker
java 11

due to some internal issue we dont want to upgrade the system to spring boot 3 and java17

Expected behavior
"mysession:index:org.springframework.session.FindByIndexNameSessionRepository.PRINCIPAL_NAME_INDEX_NAME:user" key should cleaned up in redis when the session is expired

@chittim412 chittim412 added status: waiting-for-triage An issue we've not yet triaged type: bug A general bug labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant