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

Core message migration creates too many cx to Redis

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.2, 3.6
    • Fix Version/s: None
    • Component/s: Messages
    • Labels:

      Description

      For Redis, when big volumes of users exists that exceed Redis capacities, this error is happening

      Redis lock; pid=20832; Could not get lock on fucs_cron_core_cron. Got exception while trying: READONLY You can't write against a read only slave.
      !!! La operación ha agotado el tiempo de espera para un bloqueo. !!!
      !!
      Error code: locktimeout !!
      !! Stack trace: * line 509 of /lib/classes/task/manager.php: moodle_exception thrown
      * line 66 of /lib/cronlib.php: call to core\task\manager::get_next_scheduled_task()
      * line 61 of /admin/cli/cron.php: call to cron_run()
       !!
      

      This is happening because there only exists one lock per user, the fix provided is establishing one lock per migration.

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 minute
                1m