Details
-
Bug
-
Resolution: Fixed
-
Low
-
No-Version
-
9
-
Severity 3 - Minor
-
0
-
Description
NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.
Summary
The TeamCal event reminder job runs every 5 minutes, and it queues items after it runs so that every reminder is sent up to 5 minutes later than it should.
For example, when a user sets the reminder for an event in team calendar to be sent 1 hour before the event start, the reminder is sent at 55 minutes before.
Steps to Reproduce
- Set up a mail server
- Create an event in team calendar
- Set the reminder to be 1 hour before the event start
- Confluence will send a reminder email with 5 minutes delayed
Expected Results
Email is received at the time expected.
Actual Results
Email is received up to a 5 minute delay.
Notes
To check this, put DEBUG loggin on
- com.atlassian.confluence.extra.calendar3
- com.atlassian.confluence.extra.calendar3.notification
And create an Event at 14:42 for start at 14:50.
Add event with reminder set for 5 mins before event starts
2016-10-05 14:42:00,031 INFO [AtlassianEvent::CustomizableThreadFactory-2] [extra.calendar3.notification.DefaultCalendarNotificationManager] doInTransaction do notification on thread :AtlassianEvent::CustomizableThreadFactory-2
2016-10-05 14:42:00,042 DEBUG [AtlassianEvent::CustomizableThreadFactory-2] [extra.calendar3.notification.DefaultCalendarNotificationManager] getMailableUsers Mailable user: jrichards
2016-10-05 14:42:00,042 DEBUG [AtlassianEvent::CustomizableThreadFactory-2] [extra.calendar3.notification.DefaultCalendarNotificationManager] getMailableUsers Excluded mailable user: jrichards
CalendarReminderJob runs on the next 5 minute boundary
2016-10-05 14:45:00,007 INFO [scheduler_Worker-3] [calendar3.reminder.job.CalendarReminderJob] execute CalendarReminderJob is running 2016-10-05 14:45:00,008 DEBUG [team-calendars-worker-4] [extra.calendar3.util.DefaultAsynchronousTaskExecutor] call Task com.atlassian.confluence.extra.calendar3.reminder.job.CalendarReminderJob$RemindEventForUserCollector@28d4a6a7 spent 1ms in queue
CalendarReminderJob runs on the next 5 minute boundary
2016-10-05 14:50:00,006 INFO [scheduler_Worker-9] [calendar3.reminder.job.CalendarReminderJob] execute CalendarReminderJob is running 2016-10-05 14:50:00,007 DEBUG [team-calendars-worker-0] [extra.calendar3.util.DefaultAsynchronousTaskExecutor] call Task com.atlassian.confluence.extra.calendar3.reminder.job.CalendarReminderJob$RemindEventForUserCollector@46b76989 spent 0ms in queue
CalendarReminderJob runs sending items it found
2016-10-05 14:50:00,039 DEBUG [team-calendars-worker-0] [calendar3.reminder.job.CalendarReminderJob] dumpLogDebug CalendarReminderJob is running with a list of reminder user : 1 2016-10-05 14:50:00,040 DEBUG [team-calendars-worker-0] [calendar3.reminder.job.CalendarReminderJob] dumpLogDebug Will remind for user : ConfluenceUserImpl{name='jrichards', key=ff8080815792213e01579222dca40001} 2016-10-05 14:50:00,040 DEBUG [team-calendars-worker-0] [calendar3.reminder.job.CalendarReminderJob] dumpLogDebug ##### For event com.atlassian.confluence.extra.calendar3.model.ReminderEvent@56a26c42 2016-10-05 14:50:00,042 INFO [AtlassianEvent::CustomizableThreadFactory-2] [extra.calendar3.notification.DefaultCalendarNotificationManager] doInTransaction do notification on thread :AtlassianEvent::CustomizableThreadFactory-2 2016-10-05 14:55:00,006 INFO [scheduler_Worker-8] [calendar3.reminder.job.CalendarReminderJob] execute CalendarReminderJob is running 2016-10-05 14:55:00,006 DEBUG [team-calendars-worker-1] [extra.calendar3.util.DefaultAsynchronousTaskExecutor] call Task com.atlassian.confluence.extra.calendar3.reminder.job.CalendarReminderJob$RemindEventForUserCollector@5500363d spent 0ms in queue
Attachments
Issue Links
- relates to
-
CONFCLOUD-48422 CalendarReminderJob only runs every 5 minutes delaying sending of reminders
- Closed
- mentioned in
-
Page Loading...