Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.2.X
-
7.3.x, 7.2.x
-
Committed
-
3
Description
Description: When using a cluster of at least two nodes the second node throws an error "ERROR: duplicate key value violates unique constraint "ix_4f0315b8"_ Detail: Key (buildnamespace, buildnumber)=(FOO, 29) already exists." when trying to deploy a service builder with a new buildNumber because already exists in the database in ServiceComponent table updated by deploying on the first node.
Steps to reproduce:
1. Create a cluster of two nodes node1 and node2 using cluster.link.enabled=true in portal-ext.properties pointing to same database https://help.liferay.com/hc/en-us/articles/360018175191-Liferay-DXP-Clustering
2. Create a service builder module or use the one attached for DXP 7.2
3. Deploy for the first time in both nodes, first node1 and then node2, it should work properly for the first time
4. Now increase the buildNumber by running Gradle buildService task and follow to next step
5. Deploy first in node1 wait until is done, then deploy in node2, now the error should be thrown on this second node
Actual: Errors occurs when deploying service build module with a new buildNumber in a cluster with more than a node.
Expected: No errors occurs when deploying service build module with a new buildNumber in a cluster with more than a node.
* Please see Zendesk Support tab for further comments and attachments.