-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Update flush mode related Spring Session configuration properties #17278
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
Conversation
a4d4fe5
to
4da9ec9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. If the property is specific to servlet-based deployment, perhaps we should indicate that it has no effect for reactive-based apps or something?
Thanks for the feedback. If you have a way to indicate that this property doesn't have effect on reactive session store, that would be nice to have. Note that we have the same situation from the very beginning with |
There is nothing of the sort but perhaps the description of the key should state that? Flagging for team attention to see what the rest of the team thinks. |
I wonder if we should create a separate group for Servlet-specific properties? Something like |
I like that. @vpavic can you please help us figure this out? It really depends how many properties/store are affected. |
A case could be made for both grouping by stack or by data store first, as some properties will naturally reflect the underlying data store, while others will reflect the stack. The flush mode is something that will be limited to imperative i.e. Servlet implementations. Personally I like the stack first, data store second (
|
4da9ec9
to
b9bd5db
Compare
I've added a commit to this PR that handles deprecation of It would be nice to get the first commit to Perhaps it would be good to hold off any major restructuring of properties until that effort is completed. |
I think we need more than just the first commit. An upgrade to snapshots alone results in some test failures:
What's the smallest set of changes that we need to move onto snapshots and avoid deprecation warnings please, @vpavic? Is it all three of the commits proposed here? |
Ah, yes - sorry @wilkinsona for the misleading comments. Since Spring Boot's tests use reflection to verify the state of configured that will fail since internally some member names have changed. I'll restructure commits on this PR shortly so that each commit is properly buildable. |
Actually, scratch that - since tests rely on reflection rather than public API (changes there are backwards compatible) it's difficult to split these 3 commit and get individual as stable states. Either way, I'd prefer to get this in early and do the restructuring of properties later on. We're still in milestone phase so it shouldn't be an issue. |
Sounds good to me. I'll squash these three and get them into master. |
As of Spring Session
Corn-M3
support for configuring flush mode for reactive Redis sessions is deprecated due to removal of immediate mode support.See spring-projects/spring-session#1441.
PR also contains upgrade to
Corn
snapshots - this would be nice to have on Boot side as we'll have a few configuration refinements for the upcomingM3
release. I'll provide PRs for Boot side as those happen in Spring Session.