Closed Bug 378594 Opened 18 years ago Closed 17 years ago

Closing takes very long after deleting a livemark (places)

Categories

(Firefox :: Bookmarks & History, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 3 beta1

People

(Reporter: ria.klaassen, Assigned: dietrich)

References

Details

(Keywords: regression)

Attachments

(1 file)

Steps to reproduce: - Open Firefox with enabled places with a new profile - Wait for about 20 seconds while livemarks are loading - Click Bookmarks menu and hover over Bookmarks Toolbar Folder. - In Bookmarks Toolbar Folder delete the "Latest Headlines" livemark - Close Firefox Result: after that you'll experience a long closing procedure (for about 40 seconds here) while you'll see a parent.lock file in the profile. The hang does not occur if you wait 12 seconds before closing Firefox. In bug 338884 comment 2 I mentioned something similar but not quite the same for this bug is not about loading livemarks but about deleting livemarks just before closing.
Flags: blocking-firefox3?
Blocks: 380307
Flags: blocking-firefox3? → blocking-firefox3+
Keywords: regression
Target Milestone: --- → Firefox 3 alpha6
dietrich, given how livemarks uses the annotation service, perhaps this perforamce bug is improved by your fix for bug #381378?
I tested a recent build and a 20 May build and both take about 20 seconds to close. On a 23 April places build it still takes 40 seconds. So it has improved, but not by bug 381378.
finding owners for all the A6 blockers. can you please put a swag in the whiteboard? then we can review and load-balance at the next places meeting.
Assignee: nobody → thunder
The same applies if you delete other big folders. I believe the reason is identical to the reason why *reloading* live bookmarks took long (bug 379729) and this was fixed by attachment 266122 [details] [diff] [review]. Wherever delete loop is, it needs a begin transaction at the beginning and end transaction at end/throw.
(In reply to comment #4) > The same applies if you delete other big folders. I believe the reason is > identical to the reason why *reloading* live bookmarks took long (bug 379729) > and this was fixed by attachment 266122 [details] [diff] [review]. > > Wherever delete loop is, it needs a begin transaction at the beginning and end > transaction at end/throw. > hm, bookmark folder removal is wrapped in a transaction. although it could be optimized a bit, possibly starting the transaction before removing the annotations: http://lxr.mozilla.org/mozilla/source/toolkit/components/places/src/nsNavBookmarks.cpp#1250
this is not causing hangs, freezes or extreme-brokeness of critical features, so pushing to B1.
Target Milestone: Firefox 3 alpha6 → Firefox 3 beta1
Target Milestone: Firefox 3 M7 → Firefox 3 M8
Target Milestone: Firefox 3 M8 → Firefox 3 M9
I'm not likely to be able to work on these bugs anytime soon.
Assignee: thunder → nobody
Assignee: nobody → dietrich
Attached patch v1 (deleted) — Splinter Review
wrap all the db activity in RemoveFolder in a single transaction.
Attachment #282764 - Flags: review?(sspitzer)
Comment on attachment 282764 [details] [diff] [review] v1 r=sspitzer, thanks dietrich
Attachment #282764 - Flags: review?(sspitzer) → review+
Checked in. Ria, can you please see if the bug is still reproduce-able? Checking in toolkit/components/places/src/nsNavBookmarks.cpp; /cvsroot/mozilla/toolkit/components/places/src/nsNavBookmarks.cpp,v <-- nsNavBookmarks.cpp new revision: 1.121; previous revision: 1.120 done
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0 Closes properly. Marking as verified.
Status: RESOLVED → VERIFIED
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h". In Thunderbird 3.0b, you do that as follows: Tools | Message Filters Make sure the correct account is selected. Click "New" Conditions: Body contains places-to-b-and-h Change the action to "Delete Message". Select "Manually Run" from the dropdown at the top. Click OK. Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter. Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: