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

Unable to start portal when enable cache bootstraploader and set it to load in sync way

    Details

      Description

      Steps to reproduce:

      1) Set up cluster of two nodes

      2) Enable bootstraploader on two nodes by setting:

      ehcache.bootstrap.cache.loader.enabled=true

      3) Enable to load caches in a sync way on two nodes by setting:

      ehcache.bootstrap.cache.loader.properties.default=bootstrapAsynchronously=false

      4) Start node one and wait for it is fully started

      Before fix, node one can not be started fully, it will be blocked.

      After fix, node on can be started fully

      5) Try to get a cache from MultiVMPoolUtil and put some data into it. This can be done by a jsp script on webapps/ROOT or run scripts on Control Panel > Server Administration > Script

      PortalCache portalCache = MultiVMPoolUtil.getCache("test.cache");

      portalCache.put("testKey1", "Test Value1!!!!");

      6) Start node two and wait for it is fully started

      7) Check cache entry put in node one loaded on node2, again you can check this by run scripts on Control Panel > Server Administration > Script

      8) Shutdown node2

      Excepted: After node2 is shutdown, check on node1, the cache value put earlier can be seen. 

      Actual result: After node2 is shutdown, check on node1, the cache value put earlier can not be seen. 

        Attachments

          Activity

            People

            • Assignee:
              linda.sui Linda Sui
              Reporter:
              tina.tian Tina Tian
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 9 weeks ago

                Packages

                Version Package
                7.0.0 DXP FP28
                7.0.X EE
                7.0.4 CE GA5
                7.1.X
                Master