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

Deprecated Hibernate method used by CounterFinderImpl

    Details

      Description

      Description
      The CounterFinderImpl class makes use of a session.get method which has been deprecated since 6.1. The method ultimately calls Hibernate's session.get(Class, Serializable, LockMode) method, which according to the JavaDoc, is deprecated and should be replaced with a call to session.get(Class, Serializable, LockOptions) instead.

      Because we are using this deprecated method, we are allowing for the possibility of a deadlock when Hibernate tries to retrieve a lock. By utilizing LockOptions, we can set a timeout when retrieving the lock, which will prevent such a deadlock from causing the portal to hang.

      Steps to Reproduce
      N/A

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 32 weeks, 3 days ago

                Packages

                Version Package
                7.0.0 DXP FP47
                7.0.0 DXP SP8
                7.0.X
                7.1.0 Alpha
                7.1.X
                Master