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

Social activity limit needs an explicit lock to be thread safe

    Details

      Description

      To prevent duplicate key violation in a clustered environment, the creation of a social activity limit record should be guarded by an explicit lock similarly to the creation of new activity counters. For the other thread to be able to read the new records, the creation happens in a new transaction. This solution should also rearrange the transaction logic in SocialActivityLocalServiceImpl to provide a better solution for LPS-25408 where HSQL locks up when trying to create the new record in the spawned transaction because the parent transaction already has a lock because it has modified the same table.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.chan Brian Chan
              Reporter:
              zsolt.berentey Zsolt Berentey (Inactive)
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 41 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.0 CE M6