Closed Bug 1554387 Opened 5 years ago Closed 5 years ago

Make sure no other periodic filter run is started while another is running

Categories

(MailNews Core :: Filters, defect)

defect
Not set
normal

Tracking

(thunderbird68 fixed, thunderbird69 fixed)

RESOLVED FIXED
Thunderbird 69.0
Tracking Status
thunderbird68 --- fixed
thunderbird69 --- fixed

People

(Reporter: aceman, Assigned: aceman)

References

Details

Attachments

(1 file)

When a periodic filter is run on a big folder with many messages to change, it may run longer than the interval between filter runs (10 minutes by default). This may happen when a periodic filter rules/actions change and many messages must be touched. Or when TB wasn't started for a long time and many new messages suddenly match the filter and have to be touched.
This was detected in bug 864187 comment 76.
Make sure no other periodic filter run is started before the first one finishes.
It looks like this doesn't happen right now as all of TB UI is frozen while a filter is running, but let's make it explicit and safe in the code in case filters start to run async or some threading changes cause the periodic timer fires even when other filter run is ongoing.

Attached patch 1554387.patchSplinter Review
Assignee: nobody → acelists
Status: NEW → ASSIGNED
Attachment #9067529 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9067529 [details] [diff] [review]
1554387.patch

Looks OK to me, let's not forget it for 68.
Attachment #9067529 - Flags: approval-comm-beta+
Comment on attachment 9067529 [details] [diff] [review]
1554387.patch

Review of attachment 9067529 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM, r=mkmelin
Attachment #9067529 - Flags: review?(mkmelin+mozilla) → review+

Thanks

Blocks: 1554424
Keywords: checkin-needed

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/066da1c827a5
do not start new periodic filter if one is already running. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 69.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: