| Summary: | JDBC Session Manager constantly reloading session if save intervall expired once | ||
|---|---|---|---|
| Product: | [RT] Jetty | Reporter: | Christoph Laeubrich <laeubi> |
| Component: | server | Assignee: | Jan Bartel <janb> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | critical | ||
| Priority: | P3 | CC: | fuhrmann.hauke, janb, jetty-inbox |
| Version: | 8.1.13 | ||
| Target Milestone: | 9.1.x | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Christoph Laeubrich
Laeubi, Can you confirm this happens with jetty-9.1.x? Also, can you show me the full log from where the session is first created? The first log line shows session nodeIDno9gfce4424d13ozjr5pmj9il in memory has lastSavedTime=1389862591624, yet the lastSavedTime in the database is later than that at 1389862666339 - I can't immediately see how that can be the case, so I'd like the full log for that session please. Also include your configuration settings for saveInterval etc on the JDBCSessionManager. thanks Jan Hi Jan, I currently can only confirm this on jetty 8, since we currently can't update due to third party dependencies. You can on jetty 8 reproduce this relativly simple (using default settings): - enable debug logging for JDBCSessionManager - open a page that changes the session *once* so a session is created and persited but afterwards never changed! - refresh this page on a regular basis (10sec) and see everything works fine - wait for more than 60 seconds (the default saveIntervall) - refresh the page - on each refresh the session is reloaded from the db Maybe this is not present anymore in jetty-9 then it would be nice to port this fix back to jetty-8 to make it clear: - even if you refresh regular after 60 seconds the session gets reloaded, so after aprox 6 refreshes if you refresh every 10 sec you shoudl see the case where it reloads. Important thing is that the session does not change! Hi laeubi, Fixed this for 9.1.2. thanks Jan Hi Jan, thanks for your fix, can this be fixed and released for Jetty 8 also? Since there are 3rd-party dependencies we can't upgrade to jetty-9 yet. |