-
Notifications
You must be signed in to change notification settings - Fork 1.1k
backport gh-1077 to 1.3.x. Fix NullPointerException in entryRemoved. #1316
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
… entryRemoved. detected with hazelcast 3.11, spring session 1.3.4, spring boot 1.5
@niwostufe0 Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@niwostufe0 Thank you for signing the Contributor License Agreement! |
Thanks for the PR! It appears the build is failing due to checkstyle errors. Can you please update the PR to have fixes for that? You can find the errors using |
Thanks for the PR @niwostufe0. Can you clarify what's the exact scenario you're encountering this problem? A sample to reproduce the problem would be most helpful. In Spring Session 1.3, it shouldn't be possible to hit a case where |
Hi, it seems to happen only when the session run into its timeout, after e.g. 30 min inactivity. I understood the point with IMap#delete. But maybe the delete comes from hazelcast cluster itself before spring session module try to access the session by key and get a null for it. I‘m not that deep into the session timeout behavior and what’s happening exactly there but i‘ll try to isolate this problem more for you. We don‘t have this 100% reproducible but saw it several times on different test env‘s (3-40 Nodes) over the last week. I found topics from others with similar problems with redis. I can post the links here as well if you want? It is maybe a „deep“ interesting problem. I read more than once now „that there is no code path to null“ But there is one somehow and if we are lucky it’s a problem for multiple cache provider we can find here. |
we run with hazelcast config
maybe the
as well. does spring session take care about timeouts it self and the cache provider should be configured to hold data endless? |
side topic (small patch): i replaced IMap#delete with IMap#remove for better performance because return value won't be serialized/deserialized |
Please don't change the scope of the PR before we even determined the root of the problem you're trying to address here - we need to |
ok understood. i reverted the last change. i'll try to implement an test to reproduce the NullPointerException. |
Hi i think i have it now. It seems not to be a problem within the spring session module. |
Thanks for following up and letting us know @jtodt - glad to hear you had it resolved. |
backport #gh-1077 to 1.3.x. Fix NullPointerException in entryRemoved.
detected with hazelcast 3.11, spring session 1.3.4, spring boot 1.5
#gh-1077
We detected Nullpointer on session timeouts: