Closed
Bug 1409472
Opened 7 years ago
Closed 7 years ago
Pass whether or not we should abort on first failure through to BatchingUploader
Categories
(Firefox for Android Graveyard :: Android Sync, enhancement, P1)
Firefox for Android Graveyard
Android Sync
Tracking
(firefox58 fixed)
RESOLVED
FIXED
Firefox 58
Tracking | Status | |
---|---|---|
firefox58 | --- | fixed |
People
(Reporter: tcsc, Assigned: tcsc)
References
Details
Attachments
(1 file)
It turns out that bug 1362206 doesn't quite cut it outside of the tests, since in practice the records are all CryptoRecords. Instead, we should tell the BatchingUploader up-front that it should abort on failure. One of the earlier revisions of the changeset for that bug did this, so it shouldn't be very hard.
Comment hidden (mozreview-request) |
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8919443 [details]
Bug 1409472 - Replace always-wrong instanceof check with an explicit boolean in BatchingUploader.
https://reviewboard.mozilla.org/r/190284/#review196000
Looks all right. Make sure it's green on 'try', doesn't look like your push actually ran many of the tests.
::: mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/ConfigurableServer15Repository.java:45
(Diff revision 1)
> String sort,
> ServerSyncStage.MultipleBatches multipleBatches,
> ServerSyncStage.HighWaterMark highWaterMark,
> RepositoryStateProvider stateProvider,
> - boolean forceFullFetch) throws URISyntaxException {
> + boolean forceFullFetch,
> + boolean abortOnStoreFailure) throws URISyntaxException {
"If your function has ten parameters, you're probably missing a few".
Hoping we'll get to clean this up at some point.
::: mobile/android/services/src/main/java/org/mozilla/gecko/sync/stage/BookmarksServerSyncStage.java:86
(Diff revision 1)
> BOOKMARKS_SORT,
> getAllowedMultipleBatches(),
> getAllowedToUseHighWaterMark(),
> getRepositoryStateProvider(),
> - false
> + false,
> + true
This is starting to look like an example out of a refactoring text book :)
Attachment #8919443 -
Flags: review?(gkruglov) → review+
Pushed by tchiovoloni@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/00fd9db200d6
Replace always-wrong instanceof check with an explicit boolean in BatchingUploader. r=Grisha
Comment 4•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•