Open Bug 498278 Opened 15 years ago Updated 2 years ago

Shift+Delete of mail fails with alert of "Unable to delete ... it is in use by some other operations", if "Compact Folder" is running

Categories

(MailNews Core :: Database, defect)

defect

Tracking

(Not tracked)

People

(Reporter: World, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Shift+Delete of mail fails with next alert, if "Compact Folder" is running.
> Alert
>   !  Unable to delete messages in folder xxx because it is in use by some other
>      operations. Please wait for that operation to finish and the try agin.
>                              [ OK ] 

Phenomenon was observed with both Tb 2.0.0.21 and next Tb trunk build.
> Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1pre) Gecko/20090608 Shredder/3.0b3pre

[Steps to reproduce]
(1) Tb window-1 : Shift+Delete of some mails at large local mail folder.
(2) Tb window-2 : Open the mail folder, Select All
(3) Tb window-1 : Compact foler
(4) Tb window-2 : Shift+Delete, while "Compact Folder" is running
    => Above alert dialog, and Shift+Delete is not executed.

Above phenomenon is (A) in Bug 496892 Comment #3.
I think it's a result of improvements in simultaneous execution area, and problems like MailDb corruption/Mail data loss can be avoided by the improvements. And I believe this bug's phenomenon is never caused by "flaw in code".
Main purpose of this bug is for ease of analysis of bugs which are listed in Dependency tree for meta Bug 498274.
I originally noticed (and posted Bug 496892) on Ubuntu 8.10 and Thunderbird version 2.0.0.21 (20090318). So platform should be "all".
OS: Windows XP → All
Hardware: x86 → All
When many mails in mail folder, next was observed.
(I tested with 1600*64KB mails + 22*4MB mails + 3*4MB Shift+Deleted mails)
  (a) Deleted mail coount in status bar increased.
      (I guess expunged flag is written in X-Mozilla-Status: of current)
      (mail folder file. "Compact Folder" doesn't reflect it to nstmp. )
  (b) After increase of the count stopped, the dialog appeared.
      (I guess meaning of dialog is "unable to update .msf file".)
  (c) Compact itself ended normally.
  (c-1) Shift+Deleted mail at step (1) was removed
  (c-2) Mails Shift+Delete is requested at step (4) remained, as dialog says.
If X-Mozilla-Status: is updated by Shift+Delete, Bug 495666 is relevant.
Setting Dependency to Bug 495666.
Depends on: 495666
Summary: Shift+Delete of mail fails with alert of "it is in use by some other operations", if "Compact Folder" is running → Shift+Delete of mail fails with alert of "Unable to delete ... it is in use by some other operations", if "Compact Folder" is running
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.