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

            Assignee:
            summer.zhang Summer Zhang
            Reporter:
            mariano.alvaro Mariano Álvaro
            Participants of an Issue:
            Recent user:
            Enterprise Release HU
            Engineering Assignee:
            Mariano Álvaro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 weeks, 2 days ago

                Packages

                Version Package
                7.0.X
                7.1.X
                7.2.10 DXP FP12
                7.2.X
                7.3.X
                7.4.0 CE GA1
                Master