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

SessionRepositoryFilterConfiguration can cause early initialization of SessionRepository beans including Redis #35240

Closed
philwebb opened this issue May 2, 2023 · 1 comment
Assignees
Labels
type: bug A general bug
Milestone

Comments

@philwebb
Copy link
Member

philwebb commented May 2, 2023

SessionRepositoryFilterConfiguration.sessionRepositoryFilterRegistration is a filter registration bean which means it's initialized very early. It injects a SessionRepositoryFilter which is defined in SpringHttpSessionConfiguration and itself injects a SessionRepository. If a RedisSessionRepository is being used, then full initialization of Redis occurs.

@philwebb philwebb self-assigned this May 2, 2023
@philwebb philwebb added the type: bug A general bug label May 2, 2023
@philwebb philwebb added this to the 2.7.x milestone May 2, 2023
@philwebb
Copy link
Member Author

philwebb commented May 2, 2023

This is similar to #4154

@philwebb philwebb changed the title SessionRepositoryFilterConfiguration can cause early initialziation of SessionRepository beans including Redis SessionRepositoryFilterConfiguration can cause early initialization of SessionRepository beans including Redis May 2, 2023
@philwebb philwebb modified the milestones: 2.7.x, 2.7.12 May 2, 2023
yhcast0 pushed a commit to Kyligence/kylin that referenced this issue Aug 13, 2023
… which redirect by query node caused by commit 'prevent early initialization of SessionRepository beans' from spring community (#30507)

Fix bug that all node can not get sessionid from http requert which redirect by query node caused by commit 'prevent early initialization of SessionRepository beans' from spring community
spring-projects/spring-boot#35240
Aligadodo pushed a commit to Aligadodo/kylin that referenced this issue Nov 15, 2023
… which redirect by query node caused by commit 'prevent early initialization of SessionRepository beans' from spring community (#30507)

Fix bug that all node can not get sessionid from http requert which redirect by query node caused by commit 'prevent early initialization of SessionRepository beans' from spring community
spring-projects/spring-boot#35240
Aligadodo pushed a commit to Aligadodo/kylin that referenced this issue Nov 17, 2023
… which redirect by query node caused by commit 'prevent early initialization of SessionRepository beans' from spring community (#30507)

Fix bug that all node can not get sessionid from http requert which redirect by query node caused by commit 'prevent early initialization of SessionRepository beans' from spring community
spring-projects/spring-boot#35240
Aligadodo pushed a commit to Aligadodo/kylin that referenced this issue Nov 17, 2023
…ert which redirect by query node caused by commit 'prevent early initialization of SessionRepository beans' from spring community

Fix bug that all node can not get sessionid from http requert which redirect by query node caused by commit 'prevent early initialization of SessionRepository beans' from spring community
spring-projects/spring-boot#35240
hit-lacus pushed a commit to apache/kylin that referenced this issue Nov 21, 2023
…ert which redirect by query node caused by commit 'prevent early initialization of SessionRepository beans' from spring community

Fix bug that all node can not get sessionid from http requert which redirect by query node caused by commit 'prevent early initialization of SessionRepository beans' from spring community
spring-projects/spring-boot#35240
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant