Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-26107

Remove all ehcache specific beans from Sakai core

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.9.3, 10.0
    • Fix Version/s: 10.0, 11.0
    • Component/s: Global
    • Labels:
      None
    • 10 status:
      Resolved

      Description

      All the ehcache specific beans need to be removed for the KNL-1162 work to be of real value (otherwise the beans actually can cause problems when trying to swap out to another caching system). Generally speaking this means doing the following:
      1) Remove the ehcache beans (use org.sakaiproject.memory.util.EhCacheFactoryBean)
      2) Instantiate the caches using MemoryService.newCache(name) or getCache(name) (the service may already have built the cache)
      3) OPTIONALLY Transferring the cache settings from those beans into the "standard" config mechanism (as controlled by the CacheInitializer):
      memory.

      {cacheName}

      =maxElementsInMemory=20000,timeToLiveSeconds=3600,timeToIdleSeconds=900
      (these will need to end up in kernel.properties if the cache is not using the defaults)

      NOTE: maxElementsInMemory is deprecated and removed in the newest ehcache so we need to migrate to more neutral settings
      Supported config keys for the caches will be: timeToLive=600,timeToIdle=360,maxEntries=5000,eternal=false
      NOTE: eternal and ttl/tti are incompatible (so when setting eternal to true, the tti and ttl must be 0 or many log warnings will result)

      Kernel will be handled in KNL-1233

      Beans:
      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>
      citations/citations-impl/impl/src/resources/org/sakaiproject/citation/impl/citations.xml- <property name="cacheName"><value>org.sakaiproject.citation.api.SearchManager.sessionContextCache</value>
      citations/citations-impl/impl/src/resources/org/sakaiproject/citation/impl/citations.xml- <property name="cacheName"><value>org.sakaiproject.citation.api.SearchManager.metasearchSessionManagerCache</value>
      common/privacy-components/src/webapp/WEB-INF/components.xml- <property name="cacheName"><value>org.sakaiproject.api.privacy.PrivacyManager.PrivacyQueryCache.queryGetPrivacy</value></property>
      delegatedaccess/pack/src/webapp/WEB-INF/components.xml- <property name="cacheName"><value>org.sakaiproject.delegatedaccess.cache</value>
      delegatedaccess/pack/src/webapp/WEB-INF/components.xml- <property name="cacheName"><value>org.sakaiproject.delegatedaccess.logic.ProjectLogic.nodeCache</value>
      delegatedaccess/pack/src/webapp/WEB-INF/components.xml- <property name="cacheName"><value>org.sakaiproject.delegatedaccess.logic.ProjectLogic.restrictedAuthToolsCache</value>
      delegatedaccess/pack/src/webapp/WEB-INF/components.xml- <property name="cacheName"><value>org.sakaiproject.delegatedaccess.logic.ProjectLogic.restrictedPublicToolsCache</value>
      lessonbuilder/components/src/webapp/WEB-INF/components.xml- <property name="cacheName" value="org.sakaiproject.lessonbuildertool.service.Assignment2Entity.cache" />
      lessonbuilder/components/src/webapp/WEB-INF/components.xml- <property name="cacheName" value="org.sakaiproject.lessonbuildertool.service.AssignmentEntity.cache" />
      lessonbuilder/components/src/webapp/WEB-INF/components.xml- <property name="cacheName" value="org.sakaiproject.lessonbuildertool.service.BltiEntity.cache" />
      lessonbuilder/components/src/webapp/WEB-INF/components.xml- <property name="cacheName" value="org.sakaiproject.lessonbuildertool.service.LessonBuilderAccessService.cache" />
      lessonbuilder/components/src/webapp/WEB-INF/components.xml- <property name="cacheName" value="org.sakaiproject.lessonbuildertool.service.LessonsGradeInfoProvider.cache" />
      lessonbuilder/components/src/webapp/WEB-INF/components.xml- <property name="cacheName" value="org.sakaiproject.lessonbuildertool.service.MnemeEntity.cache" />
      lessonbuilder/components/src/webapp/WEB-INF/components.xml- <property name="cacheName" value="org.sakaiproject.lessonbuildertool.service.SamigoEntity.cache" />
      lessonbuilder/components/src/webapp/WEB-INF/components.xml- <property name="cacheName" value="org.sakaiproject.lessonbuildertool.tool.beans.SimplePageBean.groupCache" />
      lessonbuilder/components/src/webapp/WEB-INF/components.xml- <property name="cacheName" value="org.sakaiproject.lessonbuildertool.tool.beans.SimplePageBean.resourceCache" />
      lessonbuilder/components/src/webapp/WEB-INF/components.xml- <property name="cacheName" value="org.sakaiproject.lessonbuildertool.tool.producers.ShowPageProducer.url.cache" />
      mailsender/pack/src/webapp/WEB-INF/components.xml- <property name="cacheName" value="org.sakaiproject.mailsender.logic.ComposeLogic.groupsCache"/>
      osp/wizard/component/src/webapp/WEB-INF/components.xml- <property name="cacheName"><value>org.theospi.portfolio.wizard.mgt.impl.WizardManagerImpl.cache</value></property>
      profile2/pack/src/webapp/WEB-INF/components.xml- <property name="cacheName"><value>org.sakaiproject.profile2.cache.kudos</value>
      profile2/pack/src/webapp/WEB-INF/components.xml- <property name="cacheName"><value>org.sakaiproject.profile2.cache.preferences</value>
      profile2/pack/src/webapp/WEB-INF/components.xml- <property name="cacheName"><value>org.sakaiproject.profile2.cache.privacy</value>
      profile2/pack/src/webapp/WEB-INF/components.xml- <property name="cacheName"><value>org.sakaiproject.profile2.cache.search</value>
      profile2/pack/src/webapp/WEB-INF/components.xml- <property name="cacheName"><value>org.sakaiproject.profile2.cache.connections</value>
      rwiki/rwiki-impl/pack/src/webapp/WEB-INF/coreServiceComponents.xml- <property name="cacheName"><value>uk.ac.cam.caret.sakai.rwiki.service.api.radeox.RenderCache</value></property>
      shortenedurl/pack/src/webapp/WEB-INF/components.xml- <property name="cacheName"><value>org.sakaiproject.shortenedurl.cache</value>

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  aaronz Aaron Zeckoski (Inactive)
                  Reporter:
                  aaronz Aaron Zeckoski (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code