XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: CLOSED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.0, 11.0
    • Component/s: Calendar
    • Labels:
      None

      Description

      Caches are defined in:
      calendar/calendar-impl/impl/src/resources/calendar-caches.xml- <property name="cacheName"><value>org.sakaiproject.calendar.impl.BaseExternalCacheSubscriptionService.institutional</value>
      calendar/calendar-impl/impl/src/resources/calendar-caches.xml- <property name="cacheName"><value>org.sakaiproject.calendar.impl.BaseExternalCacheSubscriptionService.user</value>

      Stats from testing server (artificial so don't read too much into these - get real numbers if possible):
      org.sakaiproject.calendar.impl.BaseExternalCacheSubscriptionService.institutional: count:2 hits:194 misses:2 hit%:98
      org.sakaiproject.calendar.impl.BaseExternalCacheSubscriptionService.user: count:1 hits:147 misses:1 hit%:99

      NOTE that there is something weird going in calendar where the caches are automatically refreshed via a timer rather than being loaded on demand. As a result it is not possible to simply remove the old caching beans

      I don't really follow what is going on with the timers, wrappers, and other stuff related to these caches. It seems like maybe they are warming the caches somehow. This stuff was all added in SAK-23162 so assigning to the person who added it.
      See the parent ticket for steps to make this compatible with the newer memoryservice code. Basically remove the ehcache beans and any use of ehcache specific methods.

      NOTE: also need to remove/replace the following code/maven refs:
      calendar/calendar-impl/impl/pom.xml: <groupId>net.sf.ehcache</groupId>
      calendar/calendar-impl/impl/src/java/org/sakaiproject/calendar/impl/EhCacheRefresh.java:import net.sf.ehcache.Cache;
      calendar/calendar-impl/impl/src/java/org/sakaiproject/calendar/impl/EhCacheRefresh.java:import net.sf.ehcache.Element;
      calendar/calendar-impl/impl/src/java/org/sakaiproject/calendar/impl/SubscriptionCache.java:import net.sf.ehcache.Cache;
      calendar/calendar-impl/impl/src/java/org/sakaiproject/calendar/impl/SubscriptionCache.java:import net.sf.ehcache.Element;
      calendar/calendar-impl/impl/src/java/org/sakaiproject/calendar/impl/SubscriptionCache.java: *

      {@link net.sf.ehcache.event.CacheEventListener.notifyElementExpired(Ehcache, Element)}

      calendar/calendar-impl/impl/src/test/org/sakaiproject/calendar/impl/EhCacheRefreshTest.java:import net.sf.ehcache.Cache;
      calendar/calendar-impl/impl/src/test/org/sakaiproject/calendar/impl/EhCacheRefreshTest.java:import net.sf.ehcache.CacheManager;
      calendar/calendar-impl/impl/src/test/org/sakaiproject/calendar/impl/EhCacheRefreshTest.java:import net.sf.ehcache.Element;
      calendar/calendar-impl/impl/src/test/org/sakaiproject/calendar/impl/SubscriptionCacheTest.java:import net.sf.ehcache.Cache;
      calendar/calendar-impl/impl/src/test/org/sakaiproject/calendar/impl/SubscriptionCacheTest.java:import net.sf.ehcache.CacheManager;

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  buckett Matthew Buckett
                  Reporter:
                  aaronz Aaron Zeckoski (Inactive)
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration