Details
-
Bug
-
Status: Closed
-
Resolution: Won't Fix
-
7.1.0 Beta 3
-
None
-
5
-
Regression Bug
Description
Steps to reproduce:
Same as Cluster test case 8b
- Configure two nodes as a cluster
- Enable cluster on both nodes by setting: cluster.link.enabled=true
- Configure two nodes to use same database (HSQL is not allowed in cluster environment)
- Configure to disable bootstraploader by setting:
ehcache.bootstrap.cache.loader.enabled=true
- Configure "test.cache" to load cache in sync way by setting:
ehcache.bootstrap.cache.loader.properties.test.cache=bootstrapAsynchronously=false
- Enable debugging for "test.cache" by copying file log4j/com.liferay.portal.cache.ehcache.impl-log4j-ext.xml to liferay-bundle/osgi/log4j
- Start node1 and wait for it is fully started
- 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 -------------------------------------------------------------------
- Start node2 and wait for it is fully started
- 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 -------------------------------------------------------------------
- On node1, assert console
Accepted view [liferay-Precision-5520-37063|1] (2) [liferay-Precision-5520-37063, liferay-Precision-5520-30711]
- On node2, assert console
Accepted view [liferay-Precision-5520-37063|1] (2) [liferay-Precision-5520-37063, liferay-Precision-5520-30711]
- On node1, deploy and start module: Test Modules/com.liferay.cluster.test.module.jar
- On node1, go to Control Panel->Configuration->Server Administration->Script, run Groovy Scripts/groovy-script-portal-cache-put-modules
- On node1, assert console
Put test.key into test.cache
- On node2, assert console, no exception comes up
- On node2, deploy and start module: Test Modules/com.liferay.cluster.test.module.jar
- On node2, go to Control Panel->Configuration->Server Administration->Script, run Groovy Scripts/groovy-script-portal-cache-get
- On node2, assert console
Put test.key into test.cache
- 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