-
New Feature
-
Resolution: Fixed
-
Minor
-
3.7
-
MOODLE_37_STABLE
-
MOODLE_37_STABLE
-
session-debug
-
There are lots of places which either fire of multiple ajax processes, or long running reports, and in theory if these are written well they should close the session asap to unblock the other processes running potentially in parallel:
\core\session\manager::write_close();
The issue is that there is a lot of code in core and in the plugins dir and out in the wild which doesn't do this, and there is not much in the way of tooling to help detect this.
From an end users point of view, "things are just slow", and so they typically open up a new browser tab, which of course is also blocked and they think that it's just a system performance and / or scaling issue.
This issue will expose a new developer debug setting which exposes lengthy lock wait times in the performance stuff in the footer as well as in the error log, which in turn will inform where development effort should be focused to fix these blocking sessions bugs.
- has a non-specific relationship to
-
MDL-70828 Add ability to switch off session lock debugging
- Closed
- has been marked as being related by
-
MDL-58018 Reduce session lock contention with opt-in READ_ONLY_SESSION
- Closed
-
MDL-64310 Avoid recycle bin locking the user's session during activity deletion or backup/restore (when it is enabled)
- Closed
-
MDL-67075 Extra session lock debugging for redis session handler
- Closed
- is duplicated by
-
MDL-43568 Improve performance information with session lock time
- Closed
- Testing discovered
-
MDL-65393 Edge case bug with $SESSION->recentsessionlocks growing unchecked when using $CFG->debugsessionlock
- Closed
-
MDL-60978 Fix Redis session tests
- Closed