-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Add smoke test with Spring Session and Hazelcast #27793
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
Comments
@pmverma can you please share a small minimal sample that showcases the problem you've described. You can do so by attaching a zip to this issue or pushing the project on a GitHub repository. |
@snicoll I was able to reproduce this using my Spring Session samples repo - use I think this is actually a bug in Spring Session that was introduced together with the support for Hazelcast 4, when the return type of |
@vpavic Thanks. Should we move this one to Spring Session then? |
Hey @snicoll, I've taken care of this from Spring Session side - see the timeline just above. I thought this issue could be used to consider adding smoke tests to prevent something like this from happening again. I added some from the Spring Session side, but since Spring Boot is the side that owns the integration it seems reasonable to have the smoke tests in here. |
Thanks but it's far from obvious from the timeline that it has been fixed. Have I missed a reference to an issue in Spring Session? Edit: looks like I did 🤦 Sure, we can reuse this issue to add a smoke test. |
Sorry, I probably should have referenced the issue in my comment as that would make it more clear. Anyway, I think it would be a good idea to do this for all the session stores that Spring Boot's auto-configuration supports as a regression like this one can happen anywhere. Looking at the existing spring-boot/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-session/build.gradle Line 33 in 2095991
|
They are not. IIRC, the profiles are a fairly direct translation of what we used to have with Maven. They need to be enabled as part of a manual build. |
I see, so in reality those profiles don't add much value having in mind these are smoke tests. But I understand that historically they've been samples (or at least were named as such) so in that context profiles would be of more use. Either way, what's your take on ensuring that Actuator integration for Spring Session gets smoke tested across all the session stores Spring Boot provides auto-config for? Even though there are some tests on Spring Session side now, the integration is owned by Spring Boot so it makes sense that things primarily get smoke tested here. |
Would like to work on this issue. |
Closing in favor of PR #28173. |
I think this should be reopened (and a bit repurposed) because the my previous comment raised some concerns that weren't addressed. I really think it would be valuable to have smoke tests that verify actuator integration for all the supported session stores. |
I've added a new issue for MongoDB and Redis. |
With SB 2.4.7 and spring (session+hazelcast) 2.5.2, I was expecting the
sessions
endpoint to work properly.In trace log there is,
But
Hazelcast4IndexedSessionRepository
is already there implementingFindByIndexNameSessionRepository
The endpoints docs mention only the following which is already set up in my case.
The text was updated successfully, but these errors were encountered: