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

Counter activities are not under transaction protection

    Details

      Description

      This bug was created when we originally separated a dedicated datasource for counter.
      The transaction setup was wrong, no counter related database accessing was protected by tx. Because the separate datasource requires a separate hibernate SessionFactory, however the TransactionManager is still using portal's hibernate SessionFactory, this breaks Spring's internal thread local session binding lookup, as it is using the wrong SessionFactory instance for key.

      This fix creates a separate TransactionManager for counter, generating separate aop proxy too. Completely separates the counter tx logic from portal, as it supposes to be.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jr.houn JR Houn
                Reporter:
                shuyang.zhou Shuyang Zhou
                Participants of an Issue:
                Recent user:
                Brian Wulbern
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 3 weeks, 6 days ago

                  Packages

                  Version Package
                  6.1.2 CE GA3
                  6.1.30 EE GA3
                  6.2.0 CE B1