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

LockLocalServiceImpl locking retry mechanism isn't clear in logs

Details

    Description

      When dealing with a race condition regading the use of the locking mechanism we have an eternal retry in order to create the lock, but if a couple of threads perform the update simultaneously, although the logic works, the following error can be traced in the logs:

      2021-03-16 16:48:15.956 ERROR [liferay/background_task-2][JDBCExceptionReporter:234] Duplicate entry 'com.liferay.portal.kernel.backgroundtask.BackgroundTaskExecutor-' for key 'IX_228562AD'
      

      This can generate confusion in order to understand if it's a real error or if it has been handled by Liferay's code.

      Attachments

        Activity

          People

            summer.zhang Summer Zhang
            mariano.alvaro Mariano Álvaro
            Kiyoshi Lee Kiyoshi Lee
            Mariano Álvaro Mariano Álvaro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 36 weeks, 6 days ago

              Packages

                Version Package
                7.0.0 DXP FP100
                7.0.X
                7.1.10 DXP FP23
                7.1.10.6 SP6
                7.1.X
                7.2.10 DXP FP12
                7.2.X
                7.3.7 CE GA8
                7.3.10 DXP FP2
                7.3.X
                7.4.0 CE GA1 DXP 7,4
                7.4.13 DXP GA1
                Master