Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-38189 META Backup/restore issues with large courses
  3. MDL-38191

Backup and restore should use large memory limit

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.4
    • Fix Version/s: 2.6
    • Component/s: Backup
    • Labels:
    • Testing Instructions:
      Hide

      1. Go to the Admin / Server / Performance page. Look at the available memory options. (You don't need to change it - the default 512M is enough for this test.)

      EXPECTED: On a 64-bit system, the options should include 3GB (3072M) and 4GB (4096M) options. On a 32-bit system, the options should only go up to 2GB (2048M).

      2. Use the large course creation tool from MDL-38197 to create a course of 'L' size. (This will take some time.)

      3. Go to the new course and go through the backup screens, accepting defaults in every case, as far as the 'Confirmation and review' screen.

      EXPECTED:

      • You are able to successfully reach the 'Confirmation and review' screen.
      • Note: The 'Confirmation and review' screen will show an error about backup filename and will show that you are not actually backing up all the activities, due to separate issue MDL-34491.

      (Note: Before this fix, the system fails with a memory error on the confirmation and review screen at this point.)

      Show
      1. Go to the Admin / Server / Performance page. Look at the available memory options. (You don't need to change it - the default 512M is enough for this test.) EXPECTED: On a 64-bit system, the options should include 3GB (3072M) and 4GB (4096M) options. On a 32-bit system, the options should only go up to 2GB (2048M). 2. Use the large course creation tool from MDL-38197 to create a course of 'L' size. (This will take some time.) 3. Go to the new course and go through the backup screens, accepting defaults in every case, as far as the 'Confirmation and review' screen. EXPECTED: You are able to successfully reach the 'Confirmation and review' screen. Note: The 'Confirmation and review' screen will show an error about backup filename and will show that you are not actually backing up all the activities, due to separate issue MDL-34491 . (Note: Before this fix, the system fails with a memory error on the confirmation and review screen at this point.)
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:
      MDL-38191-master

      Description

      The backup and restore user interface should use the ‘extra memory limit’ in all scripts (including, but not only, when processing the actual backup - also when showing the list of activities).

      • The current system can sometimes run out of memory when displaying the forms that occur before the backup.

      More options should be added to the extra memory limit so that it can be set to 1GB, 2GB, 3GB, and 4GB.

      • The current extra memory limit options are not large enough for certain operations, including some backup/restores.
      • You can already set a larger value manually in config.php or in custom scripts, but it should be possible to do this using the normal admin interface.
      • Note: It might be desirable to restrict the larger options so that they only appear to users of 64-bit PHP.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  18/Nov/13