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

      (Note: There are unit tests which cover this feature.)

      1. In the Administration menu under Development, choose 'Make test course'.
      2. Select the 'XS' size option.
      3. Enter a shortname of a course that already exists on your system.
      4. Submit the form.

      EXPECTED: The form shows an error next to the shortname because it already exists.

      5. Change the shortname to an unused one and submit the form.

      EXPECTED: The page shows progress as a bullet list as it creates a small course.

      6. Click the Continue link to look at the course.

      EXPECTED: The course has a Page, a Forum (with a discussion in it), an assigned user (who posted the discussion), and two File resources.

      7. Return to the tool form. This time, select an M course and continue through the process.

      EXPECTED: The resulting course should now be significantly larger with lots of Pages, several large File resources, 100 sections, etc.

      NOTE: I have used this tool successfully up to the 'XL' option, but the larger options take a really long time, so I didn't include them in the test script.

      Show
      (Note: There are unit tests which cover this feature.) 1. In the Administration menu under Development, choose 'Make test course'. 2. Select the 'XS' size option. 3. Enter a shortname of a course that already exists on your system. 4. Submit the form. EXPECTED: The form shows an error next to the shortname because it already exists. 5. Change the shortname to an unused one and submit the form. EXPECTED: The page shows progress as a bullet list as it creates a small course. 6. Click the Continue link to look at the course. EXPECTED: The course has a Page, a Forum (with a discussion in it), an assigned user (who posted the discussion), and two File resources. 7. Return to the tool form. This time, select an M course and continue through the process. EXPECTED: The resulting course should now be significantly larger with lots of Pages, several large File resources, 100 sections, etc. NOTE: I have used this tool successfully up to the 'XL' option, but the larger options take a really long time, so I didn't include them in the test script.
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:
      MDL-38197-master

      Description

      The fundamental cause of backup and restore problems is that the system has only been tested on small courses. It should be tested on a course designed to be larger in most aspects than courses that we expect to encounter at the OU and other institutions.

      There should be a test process or script for testing large course backup/restore. (This should probably be separate from normal unit tests because it will take too long to run. It might involve an automated script that creates the stupidly big course, and then a manual test script to run through doing backup and restore.)

      Specifically, this course should have the following features (there might be others but these are the factors we identified as critical):

      • At least 5,000 activities spread across at least 1,000 sections.
      • At least 50,000 enrolled users.
      • Includes a single resource (File) containing at least 10,000 different files totalling at least 1GB.
      • Includes a forum containing at least 1,000 discussions and 10,000 posts.
      • In total across other activities, includes different files totalling at least 15GB.

      A course of this size may well not backup/restore successfully with default Moodle settings; in order to make a course of this size successfully back up and restore, it will be necessary to do some or all of the following:

      • Run on a 64-bit PHP platform.
      • Increase the ‘extra memory limit’ to a large value by using a configuration option visible in admin settings.
      • Set up paths to external zip and unzip utilities.
      • Require certain minimum component versions.

      You may need to install this admin tool as part of testing another issue. If you are using a version which already includes the fixes for MDL-41045 and MDL-41004, you should be able to just merge this branch into your code and then visit the Notifications page. It should now be available under the Developer menu.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

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