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

Emails are sent duplicated if sending emails takes more time than the check interval

    Details

      Description

      Background
      Announcements email notification was designed to avoid sending duplicate emails. However, to avoid a case where some announcements might get missed due to the slight delay in when scheduled jobs are really executed, a fix was introduced in LPS-31451.
      This fix has side effects that can be considered as a regression bug.

      Issue
      Same email notification is sent multiple times if the time it takes to send the emails is higher that the scheduler check interval.

      Conditions

      • "announcements.entry.check.interval" is set to 1 minute
      • large ammount of email recipients → sending all those emails takes more that 1 minute

      Actual results
      Same notification email is sent duplicated.
      By the time it checks for the second time (minute 2), old process is still sending emails and new process starts to send the same emails again.

      Expected results
      Scheduler detects that there is already a job running and does not send the same notification email.

      Note
      Have not tried to reproduce it as SME already provided all the details

        Attachments

          Activity

            People

            • Assignee:
              yvonne.han Yvonne Han
              Reporter:
              david.zhang David Zhang (Inactive)
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 7 weeks, 6 days ago

                Packages

                Version Package
                7.0.0 DXP FP63
                7.0.X
                7.1.10 DXP FP3
                7.1.1 CE GA2
                7.1.10.1 SP1
                7.1.X
                Master