Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-12321

Multi-tier caching causes multiple test regressions

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.0
    • Fix Version/s: 4.4.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      This revision implemented multi-tier caching (with memcache or arraycache in front of SQL cache)

      https://github.com/civicrm/civicrm-core/pull/336

      Which caused these tests to regress:

      api_v3_SettingTest.testGetFieldsCaching
      api_v3_SystemTest.testFlush
      CRM_Utils_Cache_SqlGroupTest.testPrefetch

      It seems reasonable that the 'flush' operation fails – in normal deployment, there are now additional copies of the data stored in memory (in local-static variables for CRM_Core_BAO_Cache::

      {get,set}

      Item

      {s}

      and in the singleton instance of CRM_Utils_Cache_ArrayCache). These structures don't appear to be flushed. However, there seems to be more to it: after various attempts at flushing those caches (crm-12321-attempt

      {1,2}

      .patch and a few other formulations), we still don't have a fix for SystemTest.testFlush().

        Attachments

        1. crm-12321-attempt-1.patch
          4 kB
          Tim Otten
        2. crm-12321-attempt-2.patch
          3 kB
          Tim Otten
        3. crm-12321-disable-frontcache.patch
          1.0 kB
          Tim Otten
        4. crm-12321-orig.patch
          4 kB
          Tim Otten

          Issue Links

            Activity

              People

              • Assignee:
                kurund Kurund Jalmi
                Reporter:
                timotten Tim Otten
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: