Some recurring events still missing from agenda on first load
Categories
(Calendar :: Provider: Local Storage, defect, P1)
Tracking
(thunderbird_esr102? fixed, thunderbird102+ affected)
People
(Reporter: neil, Assigned: neil)
References
Details
Attachments
(1 file)
1.67 KB,
patch
|
darktrojan
:
review+
wsmwk
:
approval-comm-esr102+
|
Details | Diff | Splinter Review |
+++ 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.
Assignee | ||
Comment 1•3 years ago
|
||
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.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 2•3 years ago
|
||
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.
Updated•3 years ago
|
Updated•3 years ago
|
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/cff4e6caac16
[CalStorageCalendar] Empty recurring item caches even more carefully r=darktrojan
Comment 6•3 years ago
|
||
Comment on attachment 9278159 [details] [diff] [review]
Proposed patch
I have no objection.
Comment 7•3 years ago
|
||
Comment on attachment 9278159 [details] [diff] [review]
Proposed patch
[Triage Comment]
Approved for esr102
Comment 8•3 years ago
|
||
bugherder uplift |
Thunderbird 102.4.1:
https://hg.mozilla.org/releases/comm-esr102/rev/929d913e1763
Description
•