Closed
Bug 1272585
Opened 8 years ago
Closed 8 years ago
Handle NS_ERROR_DOCUMENT_NOT_CACHED when downloading mar files.
Categories
(Toolkit :: Application Update, defect)
Toolkit
Application Update
Tracking
()
RESOLVED
FIXED
mozilla50
People
(Reporter: robert.strong.bugs, Assigned: spohl)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
spohl
:
review+
spohl
:
feedback+
gchang
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
It appears that NS_ERROR_DOCUMENT_NOT_CACHED is reported when network offline and we currently handle this error as a failure. We should try handling it as we handle network offline.
Assignee | ||
Comment 1•8 years ago
|
||
Robert, I was going to file a separate bug to analyze the effectiveness of this patch to keep code changes and analysis separate. Does that sound good to you?
Assignee: nobody → spohl.mozilla.bugs
Status: NEW → ASSIGNED
Attachment #8758333 -
Flags: review?(robert.strong.bugs)
Reporter | ||
Comment 2•8 years ago
|
||
Comment on attachment 8758333 [details] [diff] [review]
Patch
We should first verify that our assumptions about the networking code are correct via code inspection and attempts to reproduce so clearing review request until this is done.
Attachment #8758333 -
Flags: review?(robert.strong.bugs)
Assignee | ||
Comment 3•8 years ago
|
||
Patrick, this is the bug we discussed with you yesterday. Please let us know once you've been able to look into this. Thank you!
Flags: needinfo?(mcmanus)
Comment 4•8 years ago
|
||
is it possible you have an app id for your caller? That would explain it easily when we were going offline. Its the easiest thing to look at.
Even if that isn't the source, I'm confident that your approach is sensible - this should not be a persistent error that would get someone stuck and integrity of the ondataavailable should not be in question (other than truncation).
Flags: needinfo?(mcmanus)
Assignee | ||
Comment 5•8 years ago
|
||
Comment on attachment 8758333 [details] [diff] [review]
Patch
Review of attachment 8758333 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks, Patrick! Setting this back to r?.
Attachment #8758333 -
Flags: review?(robert.strong.bugs)
Assignee | ||
Comment 6•8 years ago
|
||
Comment on attachment 8758333 [details] [diff] [review]
Patch
Review of attachment 8758333 [details] [diff] [review]:
-----------------------------------------------------------------
In the install/update team meeting today we agreed that since we have 180 days of historical telemetry data to do the "before" analysis, we can go ahead and land this now. The "before" and "after" analysis will happen in bug 1281466. Sending this to Matt and Patrick for review since Robert is on PTO.
Attachment #8758333 -
Flags: review?(robert.strong.bugs)
Attachment #8758333 -
Flags: review?(mhowell)
Attachment #8758333 -
Flags: review?(mcmanus)
Comment 7•8 years ago
|
||
Comment on attachment 8758333 [details] [diff] [review]
Patch
Review of attachment 8758333 [details] [diff] [review]:
-----------------------------------------------------------------
So I'm not comfortable slapping my r+ on code I don't really know that is also thankfully otherwise well owned and maintained.
that being said, I've read the patch and its consistent with the advice I gave afaict - I think its the right thing to do.
Attachment #8758333 -
Flags: review?(mcmanus) → feedback+
Updated•8 years ago
|
Attachment #8758333 -
Flags: review?(mhowell) → review+
Assignee | ||
Comment 8•8 years ago
|
||
Thanks, Patrick and Matt!
Updated the commit message, carrying over r+ and f+. I will wait until Monday before landing this to avoid surprises with nightly updates over the weekend.
Attachment #8758333 -
Attachment is obsolete: true
Attachment #8764790 -
Flags: review+
Attachment #8764790 -
Flags: feedback+
Assignee | ||
Comment 9•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/87bbd3f58b4b153facdd1a2995105ae28cfbcd21
Bug 1272585: Start handling NS_ERROR_DOCUMENT_NOT_CACHED the same way as network offline in app update. r=mhowell
Comment 10•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
Reporter | ||
Comment 11•8 years ago
|
||
Since this only landed for 50 what do you think about uplifting it?
Flags: needinfo?(spohl.mozilla.bugs)
Assignee | ||
Comment 12•8 years ago
|
||
If you're ready to analyze the telemetry data in bug 1281466, I'd be very happy to uplift this!
Flags: needinfo?(spohl.mozilla.bugs)
Reporter | ||
Comment 13•8 years ago
|
||
Is old data removed? If not, that shouldn't prevent uplifting.
Assignee | ||
Comment 14•8 years ago
|
||
Comment on attachment 8764790 [details] [diff] [review]
Patch
Data is kept for 180 days, so let's uplift.
Approval Request Comment
[Feature/regressing bug #]: n/a
[User impact if declined]: This fix has the potential to dramatically improve the adoption of new Firefox versions through app update and reduce the number of orphaned users. Telemetry analysis shows that 30% or more of our orphaned users may be impacted.
[Describe test coverage new/current, TreeHerder]: App update has substantial test coverage which also covers the change here.
[Risks and why]: There is a theoretical risk that users may continue a failed download that we would have aborted previously. In working with the networking team and through code inspection we don't believe that this is a realistic risk at this point. The outcome for the end user would be the same: a failed download and therefore a failed update.
[String/UUID change made/needed]: none
Attachment #8764790 -
Flags: approval-mozilla-aurora?
Comment 15•8 years ago
|
||
Comment on attachment 8764790 [details] [diff] [review]
Patch
Review of attachment 8764790 [details] [diff] [review]:
-----------------------------------------------------------------
The patch provides better handling for network error. Take it in 49 aurora.
Attachment #8764790 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•8 years ago
|
status-firefox49:
--- → affected
Comment 16•8 years ago
|
||
bugherder uplift |
Reporter | ||
Comment 17•7 years ago
|
||
Followup:
For the first time since the dashboard was implemented this result code (12 DWNLD_ERR_DOCUMENT_NOT_CACHED) was not the largest result code on the dashboard's "Out of date, of concern client last update download code (download phase)" section and the new largest result code is 0 DWNLD_SUCCESS. This confirms that this work had a significant positive effect.
Reporter | ||
Comment 18•6 years ago
|
||
I just checked telemetry and the last version that has this error code is 48.0.2. Yay!
You need to log in
before you can comment on or make changes to this bug.
Description
•