Closed Bug 1394073 Opened 7 years ago Closed 7 years ago

Uploader doesn't declare store failure if "last payload" fails to upload

Categories

(Firefox for Android Graveyard :: Android Sync, enhancement, P1)

enhancement

Tracking

(firefox57 fixed)

RESOLVED FIXED
Firefox 57
Tracking Status
firefox57 --- fixed

People

(Reporter: Grisha, Assigned: Grisha)

Details

Attachments

(1 file)

Current behaviour if the "last payload" - in most syncs that is also the first and payload - fails to upload is to declare success of a store operation, while also enumerating failed records via onRecordStoreFailed delegate callback.

This seems like a strange remnant of the non-batching uploader, or perhaps just a mistake.

Thankfully it's harmless, thanks to behaviour upsream: we consider any remote record store failures as a "sync fail" on the SynchronizerSession level, and so we don't bump our timestamps for the remote repository.
Assignee: nobody → gkruglov
Status: NEW → ASSIGNED
Comment on attachment 8901407 [details]
Bug 1394073 - Call onStoreFailed in case last payload fails in the uploader

https://reviewboard.mozilla.org/r/172894/#review178684

This makes me slightly uneasy, but I can't find any reason in the code for being uneasy, so roll on.
Attachment #8901407 - Flags: review?(rnewman) → review+
Priority: -- → P1
Pushed by gkruglov@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f4ce8ee833e9
Call onStoreFailed in case last payload fails in the uploader r=rnewman
https://hg.mozilla.org/mozilla-central/rev/f4ce8ee833e9
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
Product: Android Background Services → Firefox for Android
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: