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

No cache keys returned after deploying missing module on second cluster node

    Details

    • Fix Priority:
      4

      Description

      Steps to Reproduce (Based off of Test Case 8a from Test Plan):

      1. Configure two nodes as a cluster with the following properties
        cluster.link.enabled=true
        [same database] 
        ehcache.replicator.properties.test.cache=replicatePutsViaCopy=true
        
      1. Start node1 and wait for startup
      2. Start node2 and wait for startup
      3. Login to node1
      4. On node1, deploy and start com.liferay.cluster.test.module.7.2.jar
      5. On node1, go to Control Panel->Configuration->Server Administration->Script
      6. Run groovy-script-portal-cache-put-modules.groovy
      7. Login to node2
      8. On node 2, go to Control Panel->Configuration->Server Administration->Script
      9. Run groovy-script-portal-cache-get.groovy (will return test.cache is empty)
      10. Back on node1, run groovy-script-portal-cache-remove.groovy and groovy-script-portal-cache-put-modules.groovy
      11. On node2, deploy and start com.liferay.cluster.test.module.7.2.jar
      12. On node2, run groovy-script-portal-cache-get.groovy

      Expected Result:
      Script returns: test.key=null

      Actual Result:
      Script returns: test.cache is empty

      Future "puts" will be correctly replicated to node2 after the module is deployed on both nodes.

      How to reproduce/test again:

      1. Shutdown node2
      2. Delete com.liferay.cluster.test.module.7.2.jar from node2
      3. Startup node2
      4. Run put script on node1 (expected error will be thrown)
      5. Deploy com.liferay.cluster.test.module.7.2.jar on node2 again
      6. Run get script on node2

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 weeks, 4 days ago