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

Lack of info when deleting cache instance with existing mappings

XMLWordPrintable

    • MOODLE_401_STABLE
    • MOODLE_401_STABLE, MOODLE_402_STABLE
    • MDL-78615-401
    • MDL-78615-402
    • Hide
      1. Log in as admin
      2. Navigate to Plugins > Caching > Configuration in site administration
      3. Under Summary of cache lock instances select Add a new lock instance: File locking
        • Name: Mylock
      4. Under Installed cache stores press Add instance in the APC user cache (APCu) row
        • Store name: Myinstance
        • Locking: Mylock
      5. Under Known cache definitions press Edit mappings in the Activity completion status row
        • Primary store: Myinstance
      6. Press Delete store in the Configured store instances table for Myinstance
      7. Confirm you see the following error:

        You cannot delete this store because it has mappings. Please delete all mappings before deleting the store 
        

      8. Manually navigate to the following URL:

        <WWWROOT>/cache/admin.php?lock=Mylock&action=deletelock
        

      9. Confirm you see the following error:

        You cannot delete this lock instance because it is being used by one or more stores. 
        

      Show
      Log in as admin Navigate to Plugins > Caching > Configuration in site administration Under Summary of cache lock instances select Add a new lock instance: File locking Name: Mylock Under Installed cache stores press Add instance in the APC user cache (APCu) row Store name: Myinstance Locking: Mylock Under Known cache definitions press Edit mappings in the Activity completion status row Primary store: Myinstance Press Delete store in the Configured store instances table for Myinstance Confirm you see the following error: You cannot delete this store because it has mappings. Please delete all mappings before deleting the store Manually navigate to the following URL: <WWWROOT>/cache/admin.php?lock=Mylock&action=deletelock Confirm you see the following error: You cannot delete this lock instance because it is being used by one or more stores.

      • Create a redis instance
      • edit mappings to use it (application or session)
      • Try delete an instance

      Nothing happens - not error thrown - page just reloads

      It seems that notification is there, but not used - see https://github.com/moodle/moodle/blob/master/cache/classes/local/administration_display_helper.php#L523

            pholden Paul Holden
            ilyatregubov Ilya Tregubov
            Andrew Lyons Andrew Lyons
            Ilya Tregubov Ilya Tregubov
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 14 minutes
                1h 14m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.