Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSync: Add fetch delay to mitigate S3 inconsistency #10052
Conversation
Related to brave/sync#139
|
I'll have to dig into this some more... but in browser => browser testing, I'm seeing bookmarks not sync when both are open (some records are sent, but it appears to stop. No errors). However, after I quit/relaunch, it syncs up just fine. My steps:
|
| @@ -349,7 +349,8 @@ module.exports.onSyncReady = (isFirstRun, e) => { | |||
| } | |||
| } | |||
| e.sender.send(syncMessages.FETCH_SYNC_RECORDS, categoryNames, startAt) | |||
| startAt = syncUtil.now() | |||
| // Reduce syncUtil.now() by this amount to compensate for records pending S3 consistency. See brave/sync #139 | |||
| startAt = syncUtil.now() - config.fetchOffset | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ayumi
Jul 19, 2017
Author
Contributor
this is correct– this is "Find records whose timestamps are after 30s ago", looking in the past because records created 0–30s ago could be inconsistent.
This comment has been minimized.
This comment has been minimized.
bridiver
Jul 26, 2017
Collaborator
shouldn't you get the new startAt time (in a tmp var) before sending the FETCH_SYNC_RECORDS request? It's extremely unlikely now that you've added the offset, but in a resource starved machine there is still a potential for a gap between the sync end/next start times
This comment has been minimized.
This comment has been minimized.
|
@bsclifton that is weird– when the sync is failing, do you get anything in the sync extension console log (go to chrome-extension://cjnmeadmgmiihncdidmfiabhenbggfjm/_generated_background_page.html and open dev tools)? (I tried your test plan twice and it seemed ok for me.) |
Sync: Add fetch delay to mitigate S3 inconsistency
Sync: Add fetch delay to mitigate S3 inconsistency
LaurenWags
commented
Jul 20, 2017
|
Post-Sync import Laptop-Laptop scenario (complex case) - this scenario brave/sync#146 (comment) with different pyramids: No bookmarks/folders were lost and both pyramids were open during sync. Approx 6k bookmarks were synced. |
ayumi commentedJul 19, 2017
•
edited by bsclifton
Related to brave/sync#139
Submitter Checklist:
git rebase -ito squash commits (if needed).Test Plan:
Reviewer Checklist:
Tests