Closed Bug 1771168 Opened 3 years ago Closed 3 years ago

Some recurring events still missing from agenda on first load

Categories

(Calendar :: Provider: Local Storage, defect, P1)

Tracking

(thunderbird_esr102? fixed, thunderbird102+ affected)

RESOLVED FIXED
104 Branch
Tracking Status
thunderbird_esr102 ? fixed
thunderbird102 + affected

People

(Reporter: neil, Assigned: neil)

References

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1738867 +++

I have some recurring events in one of my calendars that don't appear on the Agenda. I've discovered that this is because of a race condition. We load the events, including recurrence info, into a cache and retrieve them from there, assuming (because we have just done it) the recurrence info is there. Meanwhile another operation comes along and throws away the cache to refill it (I don't really understand why and that code path has the word HACK in a comment, so not a good sign). So when the event retrieval code goes to use the recurrence info, it is missing and we get the wrong result.

+++ Additional information +++

I encountered this with Thunderbird 91, and crafted something similar to the patch in that bug, but it wasn't enough to resolve it. It turns out that there was a third caller racing with the other two, so although they avoided stepping on the first caller's toes, they still stepped on each other's toes.

Attached patch Proposed patchSplinter Review

I didn't need an extra idle dispatch to solve the race with the third caller but it shouldn't affect the fix so I've left it in.

Assignee: nobody → neil
Attachment #9278159 - Flags: review?(geoff)
Status: NEW → ASSIGNED

Comment on attachment 9278159 [details] [diff] [review]
Proposed patch

Okay, sure. Sorry that this patch disappeared into the void that is my to-do list.

Attachment #9278159 - Flags: review?(geoff) → review+
Target Milestone: --- → 104 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/cff4e6caac16
[CalStorageCalendar] Empty recurring item caches even more carefully r=darktrojan

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

Good for uplifting to 102?

Flags: needinfo?(lasana)

Let's ask Geoff.

Flags: needinfo?(lasana) → needinfo?(geoff)

Comment on attachment 9278159 [details] [diff] [review]
Proposed patch

I have no objection.

Flags: needinfo?(geoff)
Attachment #9278159 - Flags: approval-comm-esr102?

Comment on attachment 9278159 [details] [diff] [review]
Proposed patch

[Triage Comment]
Approved for esr102

Attachment #9278159 - Flags: approval-comm-esr102? → approval-comm-esr102+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: