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

Cache is not shared in cluster with bootstrapAsynchronously=false

Details

    • 5
    • Regression Bug

    Description

      Steps to reproduce:
      Same as Cluster test case 8b

      1. Configure two nodes as a cluster
        1. Enable cluster on both nodes by setting: cluster.link.enabled=true
        2. Configure two nodes to use same database (HSQL is not allowed in cluster environment)
        3. Configure to disable bootstraploader by setting:
          ehcache.bootstrap.cache.loader.enabled=true
          
        4. Configure "test.cache" to load cache in sync way by setting:
          ehcache.bootstrap.cache.loader.properties.test.cache=bootstrapAsynchronously=false
          
        5. Enable debugging for "test.cache" by copying file log4j/com.liferay.portal.cache.ehcache.impl-log4j-ext.xml to liferay-bundle/osgi/log4j
      2. Start node1 and wait for it is fully started
      3. On node1, assert console and find control channel's address : liferay-Precision-5520-37063
        -------------------------------------------------------------------
        GMS: address=*liferay**-**Precision**-**5520**-**37063*, cluster=*liferay**-**channel**-**control*, physical address=172.16.20.96:37714
        -------------------------------------------------------------------
        
      4. Start node2 and wait for it is fully started
      5. On node2, assert console and find control channel's address: liferay-Precision-5520-30711
        -------------------------------------------------------------------
        GMS: address=*liferay**-**Precision**-**5520**-**30711*, cluster=*liferay**-**channel**-**control*, physical address=172.16.20.96:44936
        -------------------------------------------------------------------
        
      6. On node1, assert console
        Accepted view [liferay-Precision-5520-37063|1] (2) [liferay-Precision-5520-37063,
        liferay-Precision-5520-30711]
        
      7. On node2, assert console
        Accepted view [liferay-Precision-5520-37063|1] (2) [liferay-Precision-5520-37063,
        liferay-Precision-5520-30711]
        
      8. On node1, deploy and start module: Test Modules/com.liferay.cluster.test.module.jar
      9. On node1, go to Control Panel->Configuration->Server Administration->Script, run Groovy Scripts/groovy-script-portal-cache-put-modules
      10. On node1, assert console
        Put test.key into test.cache
        
      11. On node2, assert console, no exception comes up
      12. On node2, deploy and start module: Test Modules/com.liferay.cluster.test.module.jar
      13. On node2, go to Control Panel->Configuration->Server Administration->Script, run Groovy Scripts/groovy-script-portal-cache-get
      14. On node2, assert console
        Put test.key into test.cache
        
      15. On node2, assert result
        test.key=test.value
        

      Actual Result >

      • step 10, node 2 in console is
      [liferay/cache_replication-1][cache:154] Removed test.key from test.cache
      
      • Step 15 result is
        test.cache is empty
        
      • Get cache groovy script on node 1 returns
        test.key=null
        

      Expected Result >
      test.key value must be same in both nodes

      Priority L5 + S4 = 5 

      Reproducible:
      Chromium 66
      2 instances of Liferay 7.1 beta 3 DXP, Mysql 5.5, Ubuntu 16.04

      Attachments

        Activity

          People

            tina.tian Tina Tian
            michal.kalita Michal Kalita (Inactive)
            Marta Elicegui Marta Elicegui
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 40 weeks ago

              Packages

                Version Package