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

ISPN-14477 Tests for concurrent Spring session access #10641

Conversation

thelateperseus
Copy link
Contributor

Added more tests to cover the change tracking in InfinispanSession. Specifically, ensure that the session attributes, max inactive duration and last accessed time are updated in the Infinispan cache if they are changed. Also, added tests for the various FlushMode and SaveMode settings.

Fixed a NullPointerException in SessionUpdateRemappingFunctionProtoAdapter which occurred when a session attribute was removed, i.e. the SessionAttribute value was null.

Fixed a serialisation issue SessionUpdateRemappingFunctionProtoAdapter which caused the last accessed time to be set to the epoch value if the session's last accessed time hadn't been changed.

Added more tests to cover the change tracking in `InfinispanSession`. Specifically, ensure that the session attributes, max inactive duration and last accessed time are updated in the Infinispan cache if they are changed. Also, added tests for the various FlushMode and SaveMode settings.

Fixed a `NullPointerException` in `SessionUpdateRemappingFunctionProtoAdapter` which occurred when a session attribute was removed, i.e. the `SessionAttribute` value was null.

Fixed a serialisation issue `SessionUpdateRemappingFunctionProtoAdapter` which caused the last accessed time to be set to the epoch value if the session's last accessed time hadn't been changed.
@thelateperseus
Copy link
Contributor Author

@tristantarrant, @karesti, additional tests as promised, plus a couple of bug fixes.

@karesti
Copy link
Contributor

karesti commented Feb 16, 2023

test failing are unrelated and I need to fix them on main and 14.x
merging and taking it from there
thanks @thelateperseus :))

@karesti karesti merged commit ac0e017 into infinispan:main Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants