Closed
Bug 1152698
Opened 10 years ago
Closed 10 years ago
scheduler doesn't see sync engine server error responses as errors.
Categories
(Firefox Graveyard :: Reading List, defect, P2)
Firefox Graveyard
Reading List
Tracking
(firefox38 affected, firefox39 affected, firefox40 fixed)
RESOLVED
FIXED
Firefox 40
People
(Reporter: markh, Assigned: markh)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
adw
:
review+
|
Details | Diff | Splinter Review |
_handleUnexpectedResponse should probably throw for non 200 errors - or it's got to do something else special, else we end up with:
> 1428570983146 readinglist.sync ERROR Unexpected response downloading modified items: {"status":401,...
> 1428570983149 readinglist.sync INFO Sync done
> 1428570983150 readinglist.scheduler INFO Sync completed successfully
1428570983155 readinglist.scheduler INFO next scheduled sync is in [2 hours]
Bug 1148980 will cause it to be an error log (assuming it lands) but it still leaves us with the "2 hours" thing - we need to enter an "error" schedule.
Maybe we could be conservative and have _handleUnexpectedResponse set a flag and throw at the very end - or maybe there's a flag on the engine the scheduler could check?
Either way, I think this is important - it seems like something that might cause a perception of "it never syncs"
Flags: qe-verify?
Flags: firefox-backlog+
Assignee | ||
Comment 1•10 years ago
|
||
This patch throws on 401 or 5XX, which I think is a reasonable first start. However, there is a risk we'll strike a server bug causing a 50X on just a single item which we could ignore and still get a "mostly successful" sync, but I'm not sure that's a good reason to try and force our way forward in these error states.
Attachment #8590591 -
Flags: feedback?(adw)
Updated•10 years ago
|
Comment 2•10 years ago
|
||
P2 based on "I think this is important - it seems like something that might cause a perception of "it never syncs", but it also sorta sounds like this is just a logging fix?
Priority: -- → P2
Assignee | ||
Comment 3•10 years ago
|
||
(In reply to Justin Dolske [:Dolske] from comment #2)
> P2 based on "I think this is important - it seems like something that might
> cause a perception of "it never syncs", but it also sorta sounds like this
> is just a logging fix?
Actually, it also involves the scheduler - without this fix we wait 2 hours after an error before we retry. With this fix we exponentially back off to do 2mins, 4mins, 8mins retry until either success or 2 hours.
Updated•10 years ago
|
Attachment #8590591 -
Flags: feedback?(adw) → feedback+
Assignee | ||
Updated•10 years ago
|
Attachment #8590591 -
Flags: review?(adw)
Updated•10 years ago
|
Iteration: 40.1 - 13 Apr → 40.2 - 27 Apr
Updated•10 years ago
|
Attachment #8590591 -
Flags: review?(adw) → review+
Assignee | ||
Comment 4•10 years ago
|
||
On reviewing your "todo" patch, I thought that maybe the first version of this patch was too aggressive - that aborting on those response codes in "sub" responses could cause issues. I think we only need to abort when the "top-level" response is 401 or 5XX (eg, I could imagine a server bug might cause one single item to always return 5XX even though the response itself worked as did every other item in the body.
So this version adds a bool to _handleUnexpectedResponse(), which indicates if the response is top-level. We then only throw when it is true.
Drew, do you think this is an improvement on the earlier one?
Attachment #8592572 -
Flags: review?(adw)
Updated•10 years ago
|
Attachment #8592572 -
Flags: review?(adw) → review+
Assignee | ||
Updated•10 years ago
|
Attachment #8590591 -
Attachment is obsolete: true
Assignee | ||
Comment 5•10 years ago
|
||
Comment 6•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 40
Assignee | ||
Comment 7•10 years ago
|
||
Comment on attachment 8592572 [details] [diff] [review]
0002-Bug-1152698-certain-readinglist-server-response-code.patch
Approval Request Comment
[Feature/regressing bug #]: readinglist
[User impact if declined]: The readinglist sync engine will only retry every 2 hours on error instead of by the normal error schedule which is more frequent.
[Describe test coverage new/current, TreeHerder]: Existing tests pass
[Risks and why]: Risk limited to Readinglist syncing.
[String/UUID change made/needed]: None
Attachment #8592572 -
Flags: approval-mozilla-beta?
Attachment #8592572 -
Flags: approval-mozilla-aurora?
Mark, do we still need to uplift this to 38 and 39 if we're aiming for a future release or would it make more sense to keep this on 40 for now?
Flags: needinfo?(mhammond)
Assignee | ||
Comment 9•10 years ago
|
||
Comment on attachment 8592572 [details] [diff] [review]
0002-Bug-1152698-certain-readinglist-server-response-code.patch
No need to uplift this
Flags: needinfo?(mhammond)
Attachment #8592572 -
Flags: approval-mozilla-beta?
Attachment #8592572 -
Flags: approval-mozilla-aurora?
Updated•9 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•