Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-47270

cache/core_component.php dependent on filesystem ordering

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.5, 2.7.2, 2.8
    • Fix Version/s: 2.6.6, 2.7.3
    • Component/s: Caching
    • Labels:

      Description

      The classmap array in core_component.php is ordered based on filesystem ordering. This can be a problem when the cache file is first created in a clustered environment, since each cluster node may be trying to create a different version of the file. There is a sha1 hash comparison in core_component::init() which should let the caching work in a clustered setup, but that fails due to differing ordering of the classmap.

      The fix is simply to sort the classmap before writing to the file.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mpetrowi Matt Petro
                Reporter:
                mpetrowi Matt Petro
                Peer reviewer:
                Petr Skoda
                Integrator:
                Dan Poltawski
                Tester:
                Sam Hemelryk
                Participants:
                Component watchers:
                Matteo Scaramuccia, David Monllaó, Víctor Déniz Falcón
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Nov/14