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

Issue 387983004: sync: Support non-blocking initial sync in proto (Closed)

Created:
6 years, 5 months ago by rlarocque
Modified:
6 years, 5 months ago
Reviewers:
stanisc, Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, albertb+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

sync: Support non-blocking initial sync in proto Adds support for non-blocking initial sync to the sync protocol. This allows some types to request an initial sync without having the scheduler enter configure mode. The protocol changes are necessary to keep the server informed that the request is due to an initial sync request. The remainder of the changes in this CL were required to plumb information about the cause of the sync cycle through the SyncScheduler. This CL also includes some new tests. At the moment, there are no types in use that support this feature. This CL will not affect behavior in any way. BUG=351005 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284159

Patch Set 1 #

Patch Set 2 : Rebase + fix comment #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -4 lines) Patch
M sync/engine/get_updates_processor.h View 1 chunk +1 line, -0 lines 0 comments Download
M sync/engine/get_updates_processor_unittest.cc View 1 chunk +38 lines, -0 lines 0 comments Download
M sync/engine/sync_scheduler.h View 1 chunk +8 lines, -0 lines 0 comments Download
M sync/engine/sync_scheduler_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M sync/engine/sync_scheduler_impl.cc View 1 chunk +9 lines, -0 lines 2 comments Download
M sync/internal_api/sync_manager_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M sync/protocol/sync.proto View 1 1 chunk +11 lines, -0 lines 2 comments Download
M sync/sessions/data_type_tracker.h View 3 chunks +10 lines, -0 lines 0 comments Download
M sync/sessions/data_type_tracker.cc View 6 chunks +15 lines, -2 lines 0 comments Download
M sync/sessions/nudge_tracker.h View 1 chunk +3 lines, -0 lines 0 comments Download
M sync/sessions/nudge_tracker.cc View 3 chunks +14 lines, -0 lines 0 comments Download
M sync/sessions/nudge_tracker_unittest.cc View 3 chunks +33 lines, -0 lines 0 comments Download
M sync/test/engine/fake_sync_scheduler.h View 1 chunk +1 line, -0 lines 0 comments Download
M sync/test/engine/fake_sync_scheduler.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
rlarocque
Here's the protocol change for initial sync that I've been talking about on the mailing ...
6 years, 5 months ago (2014-07-16 23:53:20 UTC) #1
Nicolas Zea
Mostly LG, with a question https://codereview.chromium.org/387983004/diff/20001/sync/protocol/sync.proto File sync/protocol/sync.proto (right): https://codereview.chromium.org/387983004/diff/20001/sync/protocol/sync.proto#newcode490 sync/protocol/sync.proto:490: optional bool initial_sync_in_progress = ...
6 years, 5 months ago (2014-07-17 16:58:08 UTC) #2
stanisc
https://codereview.chromium.org/387983004/diff/20001/sync/engine/sync_scheduler_impl.cc File sync/engine/sync_scheduler_impl.cc (right): https://codereview.chromium.org/387983004/diff/20001/sync/engine/sync_scheduler_impl.cc#newcode401 sync/engine/sync_scheduler_impl.cc:401: void SyncSchedulerImpl::ScheduleInitialSyncNudge(syncer::ModelType model_type) { This is called ScheduleInitialSyncNudge. Does ...
6 years, 5 months ago (2014-07-17 18:46:10 UTC) #3
rlarocque
https://codereview.chromium.org/387983004/diff/20001/sync/engine/sync_scheduler_impl.cc File sync/engine/sync_scheduler_impl.cc (right): https://codereview.chromium.org/387983004/diff/20001/sync/engine/sync_scheduler_impl.cc#newcode401 sync/engine/sync_scheduler_impl.cc:401: void SyncSchedulerImpl::ScheduleInitialSyncNudge(syncer::ModelType model_type) { On 2014/07/17 18:46:10, stanisc wrote: ...
6 years, 5 months ago (2014-07-17 18:58:06 UTC) #4
Nicolas Zea
Ah, missed that. LGTM then
6 years, 5 months ago (2014-07-17 19:02:44 UTC) #5
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 5 months ago (2014-07-17 19:54:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/387983004/20001
6 years, 5 months ago (2014-07-17 19:57:38 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 5 months ago (2014-07-17 23:44:22 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-18 00:06:43 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/172173)
6 years, 5 months ago (2014-07-18 00:06:45 UTC) #10
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 5 months ago (2014-07-18 00:08:12 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/387983004/20001
6 years, 5 months ago (2014-07-18 00:12:52 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 5 months ago (2014-07-18 00:35:00 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-18 00:55:55 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/172173)
6 years, 5 months ago (2014-07-18 00:55:56 UTC) #15
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 5 months ago (2014-07-18 18:07:54 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/387983004/20001
6 years, 5 months ago (2014-07-18 18:08:25 UTC) #17
commit-bot: I haz the power
6 years, 5 months ago (2014-07-18 18:13:48 UTC) #18
Message was sent while issue was closed.
Change committed as 284159

Powered by Google App Engine
This is Rietveld 408576698