-
Bug
-
Resolution: Fixed
-
Minor
-
2.4.5, 2.5
-
None
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
MDL-41291-master -
cache_filestore has a hack, suggesting that PHPUnit tests fail, but normal operation is correct.
My estimation of the situation is that under PHPUnit, clearstatcache() wasn't called at some point, which required the guess of the larger size. The current PHPUnit tests pass without the hack.
However all this exposes the issue of race conditions and caching between what the filesize is and what's actually read. To remove that, we will not just use fread to collect all the data until the end of file is reached.
- has a non-specific relationship to
-
MDL-40841 Move all file system operations to some core_io wrapper
- Closed
- has been marked as being related by
-
MDL-41058 "filesize(): stat failed" warnings from cache when running multiple front ends
- Closed
- will help resolve
-
MDL-41084 Exception throwing in MUC cache loading causes ungraceful fallback to non-cache
- Closed