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

'Lock wait timeout exceeded' error triggered on smart group cache rebuild

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.19
    • Fix Version/s: 4.7.23
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      Here's the backtrace https://pastebin.com/TMAatVLb which is triggered when you got large number of smart groups and the underlying query wants to rebuild group_contact_cache in one go which is an expensive operation.

      So, we should optimize the underlying query that is the root cause for this issue

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              monish.deb Monish Deb
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: