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

Add defence from model listener polluting hibernate session 1st level cache

    Details

      Description

      This fix prevents improper model listeners from polluting hibernate session 1st level cache.
      However to achieve this goal we will have to sacrifice's hibernate's uniqueness checking feature, this will cause us losing the concurrent modification detection.

      But this is a necessary evil to do, without this fix, a bad model listener will cause tricky uniqueness checking failure, it is very hard to locate the root cause,

      We suppose to define a batch of rules for what model listeners can do, what they can not do. Once we rule all model listeners' behaviors, it is better to add back the hibernate's uniqueness checking.

        Attachments

          Activity

            People

            Assignee:
            tammy.fong Tammy Fong (Inactive)
            Reporter:
            shuyang.zhou Shuyang Zhou
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              9 years, 37 weeks, 1 day ago

                Packages

                Version Package
                6.2.0 CE M2