Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-72150

New node entering the cluster on startup invalidates all cluster cache

    Details

    • Story Points:
      12
    • Fix Priority:
      3

      Description

      Steps to reproduce

      1. Start a node of Liferay Portal 6.2 setup for cluster operation (node1)
      2. Monitor it's entity cache for class com.liferay.portal.kernel.dao.orm.EntityCache.com.liferay.portal.model.impl.UserImpl
      3. Log in to the first node
        1. Notice that the objects stored are 2 for a clean bundle, but YMMV
      4. Start another node of Liferay Portal 6.2 set up for cluster (node2)

      Expected result

      node1 will maintain its cache.

      Actual result

      node1 have all its entity cache invalidated as you can see by the number of objects stored going down to 0 again.

      Additional details

      Using those properties

          # Clear cache on context initialization.
          #
          cache.clear.on.context.initialization=false
      
          #
          # Clear cache when plugins are undeployed.
          #
          cache.clear.on.plugin.undeploy=false
      

      Will have no effect. Neither will do partially backporting -LPS-58725- to ee-6.2.x.

      This is because DBUpgrader.upgrade() is called on startup and it invalidates the cache by calling CacheRegistryUtil.setActive(false).
       
       

        Attachments

          Activity

            People

            Assignee:
            raven.song Raven Song
            Reporter:
            cleydyr.albuquerque Cleydyr Albuquerque
            Participants of an Issue:
            Recent user:
            Enterprise Release HU
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 34 weeks, 2 days ago

                Packages

                Version Package
                6.2.X EE