Closed Bug 514504 Opened 15 years ago Closed 15 years ago

Gloda: messages for which the clean bit hasn't been committed yet can be indexed in both event and sweep modes

Categories

(MailNews Core :: Database, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.0rc1

People

(Reporter: rain1, Assigned: asuth)

Details

(Whiteboard: [gloda key])

Attachments

(1 file)

STR:

1. Trigger a large number of msgAdded notifications -- around 40 or so should do.
2. We'll start indexing the first few messages in event mode, but soon go into sweep mode.
3. Once in sweep mode, we'll attempt to index the same messages again.

This happens because we only set the clean bit on the message header after we've committed to disk, and we never get a chance in between steps 2 and 3 to commit to disk. Once we're in sweep mode, we completely forget that we've already indexed these messages.

test_index_*_imap_messages_in_bulk.js should be able to test this.
Assignee: nobody → bugmail
Whiteboard: [gloda key]
to go with the screenshot - activity mgr says 11 indexed, there are 7 msgs in the folder, 2 of which were moved <1/2 hr before

unclear if what I saw was this bug.
The gloda correctness patch addresses this through the introduction of the PendingCommitTracker.  This is tested in base_index_messages.js by the aptly named test_sweep_indexing_does_not_reindex_event_indexed.
Status: NEW → ASSIGNED
Whiteboard: [gloda key] → [gloda key][fixed in gloda correctness patch]
Fixed in gloda correctness patch tracked on bug 465618.
trunk commit: http://hg.mozilla.org/comm-central/rev/413b2018349c
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [gloda key][fixed in gloda correctness patch] → [gloda key]
Target Milestone: --- → Thunderbird 3.0rc1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: