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

Remove all ehcache specific beans from Sakai kernel

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.0
    • Fix Version/s: 10.0, 11.0
    • Component/s: Kernel
    • Labels:
    • 10 status:
      Resolved
    • Previous Issue Keys:
      KNL-1233

      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)

      This also means transferring the cache settings from those beans into the "standard" config mechanism (as controlled by the CacheInitializer):
      memory.

      {cacheName}

      =timeToLiveSeconds=3600,timeToIdleSeconds=900,maxElementsInMemory=20000,eternal=false

      Things we CANNOT remove that are EhCache specific (aside from the Cache and MemoryService impls):
      kernel/kernel-util/src/main/java/org/sakaiproject/memory/util/CacheInitializer.java
      kernel/kernel-private/src/main/java/org/sakaiproject/springframework/orm/hibernate/SakaiCacheProvider.java

      Beans:
      kernel/kernel-component/src/main/webapp/WEB-INF/alias-components.xml- <property name="cacheName" value="org.sakaiproject.alias.api.AliasService.targetCache" />
      kernel/kernel-component/src/main/webapp/WEB-INF/authz-components.xml- <property name="cacheName" value="org.sakaiproject.authz.impl.DbAuthzGroupService.realmRoleGroupCache" />
      kernel/kernel-component/src/main/webapp/WEB-INF/authz-components.xml- <property name="cacheName" value="org.sakaiproject.authz.impl.DbAuthzGroupService.authzUserGroupIdsCache"/>
      kernel/kernel-component/src/main/webapp/WEB-INF/authz-components.xml- <property name="cacheName" value="org.sakaiproject.authz.impl.DbAuthzGroupService.maintainRolesCache"/>
      kernel/kernel-component/src/main/webapp/WEB-INF/db-components.xml- <property name="cacheName"><value>org.sakaiproject.springframework.orm.hibernate.L2Cache</value></property>
      kernel/kernel-component/src/main/webapp/WEB-INF/db-components.xml- <property name="cacheName" value="org.sakaiproject.db.BaseDbFlatStorage.SAKAI_ALIAS_PROPERTY" />
      kernel/kernel-component/src/main/webapp/WEB-INF/db-components.xml- <property name="cacheName" value="org.sakaiproject.db.BaseDbFlatStorage.SAKAI_SITE_PROPERTY" />
      kernel/kernel-component/src/main/webapp/WEB-INF/db-components.xml- <property name="cacheName" value="org.sakaiproject.db.BaseDbFlatStorage.SAKAI_SITE_PAGE_PROPERTY" />
      kernel/kernel-component/src/main/webapp/WEB-INF/db-components.xml- <property name="cacheName" value="org.sakaiproject.db.BaseDbFlatStorage.SAKAI_REALM_PROPERTY" />
      kernel/kernel-component/src/main/webapp/WEB-INF/db-components.xml- <property name="cacheName" value="org.sakaiproject.db.BaseDbFlatStorage.SAKAI_SITE_GROUP_PROPERTY" />
      kernel/kernel-component/src/main/webapp/WEB-INF/db-components.xml- <property name="cacheName" value="org.sakaiproject.db.BaseDbFlatStorage.SAKAI_USER_PROPERTY" />
      kernel/kernel-component/src/main/webapp/WEB-INF/event-components.xml- <property name="cacheName" value="org.sakaiproject.event.api.UsageSessionService.recentUserRefresh"/>
      kernel/kernel-component/src/main/webapp/WEB-INF/messagebundle-components.xml- <property name="cacheName" value="org.sakaiproject.messagebundle.cache.bundles"/>
      kernel/kernel-component/src/main/webapp/WEB-INF/site-components.xml- <property name="cacheName" value="org.sakaiproject.site.api.SiteService.userSiteCache" />
      kernel/kernel-component/src/main/webapp/WEB-INF/user-components.xml- <property name="cacheName">org.sakaiproject.user.api.AuthenticationManager
      kernel/kernel-component/src/main/webapp/WEB-INF/user-components.xml- <property name="cacheName">
      NOTE: org.sakaiproject.user.api.UserDirectoryService a.k.a org.sakaiproject.user.api.UserDirectoryService.cache OR org.sakaiproject.user.api.UserDirectoryService.idEidCache

      NOTE: Remove these from kernel/kernel-util/src/main/java/org/sakaiproject/memory/util once the beans are all removed.
      EhCacheManagerFactoryBean
      EhCacheFactoryBean

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

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

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration