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

Session + redis -> Lost data when run many requests #3056

Closed
schotten opened this issue Nov 25, 2024 · 2 comments
Closed

Session + redis -> Lost data when run many requests #3056

schotten opened this issue Nov 25, 2024 · 2 comments
Labels
for: external-project For an external project and not something we can fix

Comments

@schotten
Copy link

After migration to spring parent 2.5.0 from 3.4.0, the spring data redis lost data the intermittently.
I isolated one specific scenario that reproduce in my machine.

Enviroment:

  1. I use the default Spring integration
  2. I save the object complex in spring session through below code:
image
  1. I use the last version of redis (7.4.1)

Scenario

My aplication execute the endpoint /front/adapters/grouper/23866860
After the response of backend, the front call the requests in parallel

  • /front/constraints/list/disabled
  • /front/user-requirements/user/forced/dto
  • /front/tree
  • /front/user-requirements/recommendation/disabled
  • /front/tree/nodes/filter/autocomplete

In my secondary user interactive, i call the endpoint /front/drawings-urs[]

My problem:
When, i started the application in every firsty execution, the system lost data session in the parallel requests.
I created one LoggableDispatcherServlet to log session informations, please follow the file: LoggableDispatcherServlet.txt

In log from LoggableDispatcherServlet, please, check the order of request/response. I converted from table the better visualization

event type - endpoint
1 IN - /front/adapters/grouper/23866860-urs[]
2 OUT - /front/adapters/grouper/23866860-urs[{"id"100,"keyUr":"Project.motor.hasBrake"}]
3 IN - /front/constraints/list/disabled-urs[]
4 IN - /front/user-requirements/user/forced/dto-urs[]
5 IN - /front/tree-urs[]
6 IN - /front/user-requirements/recommendation/disabled-urs[]
7 IN - /front/tree/nodes/filter/autocomplete-urs[]
8 OUT - /front/constraints/list/disabled-urs[]
9 OUT - /front/user-requirements/user/forced/dto-urs[]
10 OUT - /front/user-requirements/recommendation/disabled-urs[]
11 OUT - /front/tree-urs[]
12 IN - /front/projects/status/allStatus-urs[{"id"100,"keyUr":"Project.motor.hasBrake"}]
13 OUT - /front/projects/status/allStatus-urs[{"id"100,"keyUr":"Project.motor.hasBrake"}]
14 OUT - /front/tree/nodes/filter/autocomplete-urs[]
15 IN - /front/drawings-urs[]

Check:

  • In the line 1, the user call the execution endpoint /front/adapters/grouper/23866860 and not have data in session.
  • in the line 2, the system filled data in session ({"id"100,"keyUr":"Project.motor.hasBrake"})
  • Lines 3,4,5,6,7 automatic called data from backand, after the response of line 2 and not have the session data in the start.
  • Line 12 and 13 have session spring data
  • line 15, the next interaction to user, the data was lost.

Please, verify and fix this problem, please. If need more information, please tell me in the response this question.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 25, 2024
@mp911de
Copy link
Member

mp911de commented Nov 27, 2024

Spring Session and Spring Integration are separate projects. This repository hosts Spring Data Redis. I suggest you file in either one of these projects a ticket to get further guidance. It sounds as if Spring Session would be the better place to start with.

@mp911de mp911de closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2024
@mp911de mp911de added for: external-project For an external project and not something we can fix and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 27, 2024
@schotten
Copy link
Author

Tanks for information, i created new issue as per recomended. link spring-projects/spring-session#3285

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project For an external project and not something we can fix
Projects
None yet
Development

No branches or pull requests

3 participants