Closed Bug 342908 Opened 18 years ago Closed 18 years ago

don't recheck microsummaries when previous updates fail until normal expiration

Categories

(Firefox Graveyard :: Microsummaries, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 2 beta1

People

(Reporter: myk, Assigned: myk)

References

Details

(Keywords: fixed1.8.1)

Attachments

(1 file)

If the microsummary service attempts to update a microsummary, and the update attempt fails, the service tries again in 15 seconds, which means that if the failure occurred during or after the generator/page was requested, and the failure is persistent, then the service will repeatedly issue requests every 15 seconds, possibly inadvertently DOSing the server and exacerbating any load/availability problems it is experiencing.

The microsummary service should never attempt to update a microsummary more frequently than the default interval.  This should be easy to fix.  We just need to make the service reset the microsummary's expiration property before it starts the update instead of after the update completes.  But making this depend on bug 339543, as this probably involves touching code that bug is changing.
Flags: blocking-firefox2?
Flags: blocking-firefox2? → blocking-firefox2+
Here's the minimal fix for this bug.  It updates the expiration time before trying to refresh the microsummary during the regular updateMicrosummaries cycle.  But it doesn't yet remove the code that updates the expiration time after the microsummary is refreshed.

We should move that code so that it only runs when microsummaries are manually refreshed (i.e. not during the regular update cycle, but because of some user action), but perhaps we can do that in a separate patch.
Attachment #228121 - Flags: review?(bugs)
Comment on attachment 228121 [details] [diff] [review]
patch v1: the minimal fix for this bug

r=ben@mozilla.org
Attachment #228121 - Flags: review?(bugs) → review+
Fix checked in to trunk.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment on attachment 228121 [details] [diff] [review]
patch v1: the minimal fix for this bug

a=darin on behalf of drivers
Attachment #228121 - Flags: approval1.8.1+
Keywords: fixed1.8.1
Component: Bookmarks → Microsummaries
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: