Closed Bug 1813129 Opened 1 year ago Closed 1 year ago

Firefox should fall back if staging fails with a memory error

Categories

(Toolkit :: Application Update, defect, P1)

defect

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: bytesized, Assigned: bytesized)

References

Details

(Whiteboard: [fidedi-ope])

Attachments

(2 files)

The updater needs to allocate memory in order to stage an update. We have several specific error codes for when staging fails due to inability to allocate memory. It looks like we currently react to these errors the way that we react to most errors: by clearing out the update and attempting to download another one.

But there is something that we should keep in mind when this happens. Staging means installing an update specifically while Firefox is running, and Firefox uses a lot of memory. If we failed to allocate sufficient memory to update when Firefox was running, we should try again when Firefox is not running. This is to say that when we get a memory error while staging, we should fall back to updating without staging.

But there is something that we should keep in mind when this happens. Staging means installing an update specifically while Firefox is running, and Firefox uses a lot of memory. If we failed to allocate sufficient memory to update when Firefox was running, we should try again when Firefox is not running. This is to say that when we get a memory error while staging, we should fall back to updating without staging.

This would just fall back to not staging for this particular update, correct? And then the next update cycle would respect the existing in-Gecko preferences?

Flags: needinfo?(bytesized)

(In reply to Nick Alexander :nalexander [he/him] from comment #1)

This would just fall back to not staging for this particular update, correct? And then the next update cycle would respect the existing in-Gecko preferences?

That's correct.

Flags: needinfo?(bytesized)
Pushed by ksteuber@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f96a4c0174ee
Fall back from memory errors during staging r=nalexander
https://hg.mozilla.org/integration/autoland/rev/6c309593a0f9
Test for fallback on memory allocation error r=nalexander
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: