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

Updated the findSession method to fix concurrency issues #61

Merged

Conversation

alparslanavci
Copy link
Contributor

Fixes #42 & #34

Hazelcast calls in HazelcastSessionManager.findSession(id) method (remove and set) should be concurrent in order to provide thread-safe access to the session object.

The depreciated usage of EntryListener is also replaced with MapListener.

@alparslanavci
Copy link
Contributor Author

This PR might bring some performance issues because of pessimistic lock usage. I will open another issue to point out this possible problem.

@gokhanoner
Copy link

@alparslanavci, what about entryEvicted case? With new listener, you only catch removed sessions, not evicted/expired ones.

@alparslanavci
Copy link
Contributor Author

@gokhanoner yes, I missed that part. Thanks for pointing out. I added them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants