We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a lot of concurrent calls inside my application and I receive the following logs:
Nov 24, 2017 6:35:16 AM com.hazelcast.session.HazelcastSessionManager findSession INFO: No Session found for:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:16 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-7 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:16 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-6 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-6 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager findSession INFO: No Session found for:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager findSession INFO: No Session found for:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-3 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-1 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-7 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-6 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-7 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-6 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-6 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-7 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-7 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-7 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-1 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-7 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-3 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-3 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-7 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-6 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-6 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-6 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-6 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager findSession INFO: No Session found for:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-7 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-3 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:17 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-6 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:18 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-3 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:18 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-3 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:18 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-7 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:18 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-3 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:18 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-6 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:18 AM com.hazelcast.session.HazelcastSessionManager findSession INFO: No Session found for:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:18 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-3 committed key:ADC7938F491576F2703AFEA344EB0A3F Nov 24, 2017 6:35:18 AM com.hazelcast.session.HazelcastSessionManager commit INFO: Thread name:http-bio-8080-exec-6 committed key:ADC7938F491576F2703AFEA344EB0A3F
As you can see I always have the same session id, but for some reason session manager cannot find it.
I think the root cause is the following code:
this.sessionMap.remove(id); this.sessionMap.set(id, hazelcastSession);
Can somebody explain me why we cannot just execute set without remove to prevent concurrency issue?
If it's required how I can prevent problem like this.
The text was updated successfully, but these errors were encountered:
Can we use set without remove or put instead of remove & set operation?
set
put
remove
Sorry, something went wrong.
similar to #42
findSession
Fixed by #61.
No branches or pull requests
I have a lot of concurrent calls inside my application and I receive the following logs:
As you can see I always have the same session id, but for some reason session manager cannot find it.
I think the root cause is the following code:
Can somebody explain me why we cannot just execute set without remove to prevent concurrency issue?
If it's required how I can prevent problem like this.
The text was updated successfully, but these errors were encountered: