Issue
- When using Microsoft SQL Server as Liferay's database, using a workflow with a fork will cause the database server to deadlock
Environment
- Liferay Portal or Liferay DXP with Microsoft SQL Server as Liferay's database
Resolution
- When using SQL Server as Liferay's database, the Read Committed Snapshot Isolation level must be manually enabled.
-
This Support Policy article details this:
For SQL Server to function properly with the product, SQL Server’s Read Committed Snapshot Isolation level must be turned on. While other databases enable this behavior out of the box, it is disabled by default for SQL Server.
Additional Information
- Please review the following articles from Microsoft regarding Database Snapshots in SQL Server:
1) https://technet.microsoft.com/en-us/library/ms189940(v=sql.105).aspx
2) https://technet.microsoft.com/en-us/library/ms175095(v=sql.105).aspx