Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Issue 124083002: Client-side changes to support retry GU. (Closed)

Created:
6 years, 11 months ago by haitaol1
Modified:
6 years, 11 months ago
Reviewers:
haitaol, rlarocque, pavely
CC:
chromium-reviews, tim+watch_chromium.org, rsimha+watch_chromium.org, haitaol+watch_chromium.org, albertb+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

Support GU retry command in sync engine. The command specifies a delay after which syncer should issue a GU to pick up updates missed by last GU. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244381

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 13

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Total comments: 9

Patch Set 7 : #

Total comments: 10

Patch Set 8 : #

Total comments: 5

Patch Set 9 : #

Patch Set 10 : recommit #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+413 lines, -94 lines) Patch
sync/engine/download.h View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
sync/engine/download.cc View 1 2 3 4 5 2 chunks +40 lines, -0 lines 0 comments Download
sync/engine/download_unittest.cc View 1 2 3 4 5 6 1 chunk +37 lines, -0 lines 0 comments Download
sync/engine/sync_scheduler_impl.h View 1 2 3 4 5 6 7 5 chunks +13 lines, -3 lines 0 comments Download
sync/engine/sync_scheduler_impl.cc View 1 2 3 4 5 6 7 8 7 chunks +37 lines, -16 lines 0 comments Download
sync/engine/sync_scheduler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 12 chunks +109 lines, -13 lines 0 comments Download
sync/engine/syncer.h View 1 chunk +2 lines, -0 lines 0 comments Download
sync/engine/syncer.cc View 1 2 3 4 5 2 chunks +15 lines, -1 line 0 comments Download
sync/engine/syncer_proto_util.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
sync/engine/syncer_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -2 lines 0 comments Download
sync/protocol/client_commands.proto View 1 chunk +3 lines, -0 lines 0 comments Download
sync/protocol/get_updates_caller_info.proto View 1 chunk +1 line, -0 lines 0 comments Download
sync/protocol/proto_enum_conversions.cc View 1 2 3 4 5 6 7 8 9 4 chunks +4 lines, -2 lines 0 comments Download
sync/protocol/proto_enum_conversions_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
sync/protocol/sync.proto View 1 1 chunk +5 lines, -1 line 0 comments Download
sync/protocol/sync_enums.proto View 1 chunk +5 lines, -3 lines 0 comments Download
sync/sessions/nudge_tracker.h View 1 2 3 4 5 6 3 chunks +15 lines, -3 lines 0 comments Download
sync/sessions/nudge_tracker.cc View 1 2 3 4 5 2 chunks +14 lines, -2 lines 0 comments Download
sync/sessions/nudge_tracker_unittest.cc View 1 2 3 4 5 6 13 chunks +56 lines, -37 lines 0 comments Download
sync/sessions/sync_session.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
sync/sessions/test_util.h View 1 2 3 4 5 6 7 2 chunks +12 lines, -5 lines 0 comments Download
sync/sessions/test_util.cc View 1 2 3 4 5 6 7 3 chunks +12 lines, -5 lines 0 comments Download
sync/test/engine/fake_sync_scheduler.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
sync/test/engine/fake_sync_scheduler.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
haitaol1
Send out for early feedbacks. It seems retry GU can leverage on existing code for ...
6 years, 11 months ago (2014-01-03 19:52:23 UTC) #1
rlarocque
Thanks for sending this out early. I've got a few suggestions. Let me know if ...
6 years, 11 months ago (2014-01-03 21:17:15 UTC) #2
haitaol
Resolved per offline discussion. More inline. On Fri, Jan 3, 2014 at 1:17 PM, <rlarocque@chromium.org> ...
6 years, 11 months ago (2014-01-03 23:28:41 UTC) #3
rlarocque
Sounds good. Did you forget to upload the latest patch?
6 years, 11 months ago (2014-01-04 00:12:55 UTC) #4
rlarocque
+Pavel. Pavel is working on the scheduler, too. We should keep him in the loop ...
6 years, 11 months ago (2014-01-04 00:14:05 UTC) #5
haitaol1
Updated as discussed. Also changed to apply same pre-sync check and post-sync processing for three ...
6 years, 11 months ago (2014-01-06 22:14:02 UTC) #6
rlarocque
I disagree with the attempt to combine pre-sync and post-sync logic. Doing so will make ...
6 years, 11 months ago (2014-01-06 23:00:33 UTC) #7
haitaol1
https://codereview.chromium.org/124083002/diff/190001/sync/engine/download.cc File sync/engine/download.cc (right): https://codereview.chromium.org/124083002/diff/190001/sync/engine/download.cc#newcode237 sync/engine/download.cc:237: get_updates->set_is_retry(nudge_tracker.IsRetryRequired()); origin == RETRY already indicates it's a retry ...
6 years, 11 months ago (2014-01-07 19:03:36 UTC) #8
rlarocque
https://codereview.chromium.org/124083002/diff/190001/sync/engine/download.cc File sync/engine/download.cc (right): https://codereview.chromium.org/124083002/diff/190001/sync/engine/download.cc#newcode237 sync/engine/download.cc:237: get_updates->set_is_retry(nudge_tracker.IsRetryRequired()); On 2014/01/07 19:03:37, haitaol1 wrote: > origin == ...
6 years, 11 months ago (2014-01-07 19:43:40 UTC) #9
haitaol1
On 2014/01/07 19:43:40, rlarocque wrote: > https://codereview.chromium.org/124083002/diff/190001/sync/engine/download.cc > File sync/engine/download.cc (right): > > https://codereview.chromium.org/124083002/diff/190001/sync/engine/download.cc#newcode237 > ...
6 years, 11 months ago (2014-01-07 23:34:48 UTC) #10
rlarocque
On 2014/01/07 23:34:48, haitaol1 wrote: > On 2014/01/07 19:43:40, rlarocque wrote: > > https://codereview.chromium.org/124083002/diff/190001/sync/engine/download.cc > ...
6 years, 11 months ago (2014-01-08 00:45:17 UTC) #11
pavely
https://codereview.chromium.org/124083002/diff/280001/sync/engine/sync_scheduler_impl.cc File sync/engine/sync_scheduler_impl.cc (right): https://codereview.chromium.org/124083002/diff/280001/sync/engine/sync_scheduler_impl.cc#newcode700 sync/engine/sync_scheduler_impl.cc:700: return; Please don't do early return from this function. ...
6 years, 11 months ago (2014-01-08 00:59:55 UTC) #12
haitaol1
On 2014/01/08 00:45:17, rlarocque wrote: > On 2014/01/07 23:34:48, haitaol1 wrote: > > On 2014/01/07 ...
6 years, 11 months ago (2014-01-08 19:06:00 UTC) #13
haitaol1
https://codereview.chromium.org/124083002/diff/190001/sync/engine/download.cc File sync/engine/download.cc (right): https://codereview.chromium.org/124083002/diff/190001/sync/engine/download.cc#newcode237 sync/engine/download.cc:237: get_updates->set_is_retry(nudge_tracker.IsRetryRequired()); On 2014/01/07 19:43:41, rlarocque wrote: > On 2014/01/07 ...
6 years, 11 months ago (2014-01-08 19:06:37 UTC) #14
haitaol1
Patch refreshed. PTAL
6 years, 11 months ago (2014-01-08 19:58:16 UTC) #15
rlarocque
I have some comments about testing, but most of the patch looks good. https://codereview.chromium.org/124083002/diff/430001/sync/engine/download.h File ...
6 years, 11 months ago (2014-01-08 20:30:07 UTC) #16
haitaol1
https://codereview.chromium.org/124083002/diff/430001/sync/sessions/nudge_tracker.cc File sync/sessions/nudge_tracker.cc (right): https://codereview.chromium.org/124083002/diff/430001/sync/sessions/nudge_tracker.cc#newcode37 sync/sessions/nudge_tracker.cc:37: bool NudgeTracker::IsSyncRequired() const { I didn't call IsRetryRequired() here ...
6 years, 11 months ago (2014-01-09 00:30:43 UTC) #17
haitaol1
https://codereview.chromium.org/124083002/diff/430001/sync/sessions/nudge_tracker_unittest.cc File sync/sessions/nudge_tracker_unittest.cc (right): https://codereview.chromium.org/124083002/diff/430001/sync/sessions/nudge_tracker_unittest.cc#newcode740 sync/sessions/nudge_tracker_unittest.cc:740: working on tests On 2014/01/08 20:30:08, rlarocque wrote: > ...
6 years, 11 months ago (2014-01-09 00:33:37 UTC) #18
rlarocque
https://codereview.chromium.org/124083002/diff/430001/sync/sessions/nudge_tracker.cc File sync/sessions/nudge_tracker.cc (right): https://codereview.chromium.org/124083002/diff/430001/sync/sessions/nudge_tracker.cc#newcode37 sync/sessions/nudge_tracker.cc:37: bool NudgeTracker::IsSyncRequired() const { On 2014/01/09 00:30:44, haitaol1 wrote: ...
6 years, 11 months ago (2014-01-09 00:37:20 UTC) #19
haitaol1
Tests added. PTAL. https://codereview.chromium.org/124083002/diff/430001/sync/engine/download.h File sync/engine/download.h (right): https://codereview.chromium.org/124083002/diff/430001/sync/engine/download.h#newcode84 sync/engine/download.h:84: SYNC_EXPORT_PRIVATE void BuildDownloadUpdatesForRetryImpl( On 2014/01/08 20:30:08, ...
6 years, 11 months ago (2014-01-10 00:15:58 UTC) #20
rlarocque
https://codereview.chromium.org/124083002/diff/550001/sync/engine/sync_scheduler_unittest.cc File sync/engine/sync_scheduler_unittest.cc (right): https://codereview.chromium.org/124083002/diff/550001/sync/engine/sync_scheduler_unittest.cc#newcode1309 sync/engine/sync_scheduler_unittest.cc:1309: scheduler()->OnReceivedGuRetryDelaySeconds(1); Hmm... These tests will be slow. We went ...
6 years, 11 months ago (2014-01-10 00:42:00 UTC) #21
haitaol1
https://codereview.chromium.org/124083002/diff/550001/sync/engine/sync_scheduler_unittest.cc File sync/engine/sync_scheduler_unittest.cc (right): https://codereview.chromium.org/124083002/diff/550001/sync/engine/sync_scheduler_unittest.cc#newcode1309 sync/engine/sync_scheduler_unittest.cc:1309: scheduler()->OnReceivedGuRetryDelaySeconds(1); On 2014/01/10 00:42:00, rlarocque wrote: > Hmm... These ...
6 years, 11 months ago (2014-01-10 22:10:34 UTC) #22
rlarocque
Much better. I've got a few nits, but otherwise LGTM. https://codereview.chromium.org/124083002/diff/860001/sync/engine/sync_scheduler_unittest.cc File sync/engine/sync_scheduler_unittest.cc (right): https://codereview.chromium.org/124083002/diff/860001/sync/engine/sync_scheduler_unittest.cc#newcode223 ...
6 years, 11 months ago (2014-01-10 22:41:12 UTC) #23
haitaol1
https://codereview.chromium.org/124083002/diff/860001/sync/engine/sync_scheduler_unittest.cc File sync/engine/sync_scheduler_unittest.cc (right): https://codereview.chromium.org/124083002/diff/860001/sync/engine/sync_scheduler_unittest.cc#newcode1376 sync/engine/sync_scheduler_unittest.cc:1376: WithoutArgs(VerifyRetryTimerDelay(this, delay1)), On 2014/01/10 22:41:13, rlarocque wrote: > nit: ...
6 years, 11 months ago (2014-01-10 23:45:02 UTC) #24
rlarocque
https://codereview.chromium.org/124083002/diff/860001/sync/engine/sync_scheduler_unittest.cc File sync/engine/sync_scheduler_unittest.cc (right): https://codereview.chromium.org/124083002/diff/860001/sync/engine/sync_scheduler_unittest.cc#newcode1376 sync/engine/sync_scheduler_unittest.cc:1376: WithoutArgs(VerifyRetryTimerDelay(this, delay1)), On 2014/01/10 23:45:03, haitaol1 wrote: > On ...
6 years, 11 months ago (2014-01-10 23:47:58 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haitaol@chromium.org/124083002/1060001
6 years, 11 months ago (2014-01-11 00:20:51 UTC) #26
commit-bot: I haz the power
6 years, 11 months ago (2014-01-11 23:00:44 UTC) #27
Message was sent while issue was closed.
Change committed as 244381

Powered by Google App Engine
This is Rietveld 408576698