Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
5.1 EE SP4 (5.1.7), 5.2 EE SP2 (5.2.6)
-
None
-
DB2 8.x
Description
The upgrade process for upgrading Document Library to 5.1 EE or 5.2 EE (com.liferay.portal.upgrade.v5_2_0.UpgradeDocumentLibrary) never finishes because DB2 uses one connection to select a set of rows, and a second connection to update those rows.
The fix for this issue depends on the JDBC pooling that is used:
TOMCAT JDBC POOLING
Set the defaultTransactionIsolation attribute in the Resource element to READ_UNCOMMITTED. For example:
<Context path="" crossContext="true">
<Resource
defaultTransactionIsolation="READ_UNCOMMITTED"
name="jdbc/LiferayPool"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.ibm.db2.jcc.DB2Driver"
url="jdbc:db2:lportal"
username="db2admin"
password="lportal"
maxActive="20"
/>
C3P0
Set the following in portal-ext.properties:
jdbc.default.transactionIsolation=1
DBCP
Set the following in portal-ext.properties:
jdbc.default.defaultTransactionIsolation=READ_UNCOMMITTED
PRIMSON
Set the following in portal-ext.properties:
jdbc.default.connectionTransactionIsolation=TRANSACTION_READ_UNCOMMITTED
Attachments
Issue Links
- is related to
-
LPS-6091 DB2 Upgrade hangs on UpgradeDocumentLibrary
- Closed