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

Issue 2442583003: [Sync] Start implementation of migration for USS. (Closed)

Created:
4 years, 2 months ago by maxbogue
Modified:
4 years, 1 month ago
Reviewers:
Ilya Sherman, skym, *pavely
CC:
chromium-reviews, asvitkine+watch_chromium.org, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Start implementation of migration for USS. This approach draws data and metadata from the server half of the directory and injects it into USS as the initial GetUpdates response. This CL does not actually enable migration in production because an empty migrator function is passed instead of the real one. BUG=658002 Committed: https://crrev.com/822cfab0275712dbd7d69673f68a32461b53c1bc Cr-Commit-Position: refs/heads/master@{#428467}

Patch Set 1 #

Patch Set 2 : Fix other tests. #

Total comments: 73

Patch Set 3 : Address comments. #

Patch Set 4 : Fix broken test. #

Patch Set 5 : Address comments and disable migration. #

Patch Set 6 : Rebase. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+654 lines, -180 lines) Patch
M components/sync/BUILD.gn View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M components/sync/engine_impl/model_type_registry.h View 1 2 3 4 5 6 chunks +14 lines, -8 lines 0 comments Download
M components/sync/engine_impl/model_type_registry.cc View 1 2 3 4 5 7 chunks +50 lines, -23 lines 0 comments Download
M components/sync/engine_impl/model_type_registry_unittest.cc View 1 2 9 chunks +37 lines, -28 lines 0 comments Download
M components/sync/engine_impl/model_type_worker.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M components/sync/engine_impl/model_type_worker.cc View 1 2 3 4 5 3 chunks +11 lines, -1 line 0 comments Download
M components/sync/engine_impl/model_type_worker_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M components/sync/engine_impl/sync_manager_impl.cc View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M components/sync/engine_impl/sync_scheduler_impl_unittest.cc View 1 2 5 chunks +9 lines, -6 lines 0 comments Download
M components/sync/engine_impl/syncer_unittest.cc View 1 2 103 chunks +108 lines, -106 lines 0 comments Download
M components/sync/engine_impl/test_entry_factory.h View 1 chunk +9 lines, -2 lines 0 comments Download
M components/sync/engine_impl/test_entry_factory.cc View 1 2 3 4 4 chunks +44 lines, -3 lines 0 comments Download
A components/sync/engine_impl/uss_migrator.h View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A components/sync/engine_impl/uss_migrator.cc View 1 2 3 4 1 chunk +117 lines, -0 lines 3 comments Download
A components/sync/engine_impl/uss_migrator_unittest.cc View 1 2 3 4 5 1 chunk +196 lines, -0 lines 3 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (34 generated)
maxbogue
Sky, Pavel, PTAL! I'm not very familiar with the directory so let me know if ...
4 years, 2 months ago (2016-10-21 06:51:11 UTC) #11
skym
This is way more simple than I thought it would be, awesome! https://codereview.chromium.org/2442583003/diff/20001/components/sync/engine_impl/model_type_registry.cc File components/sync/engine_impl/model_type_registry.cc ...
4 years, 2 months ago (2016-10-21 15:34:21 UTC) #12
maxbogue
PTAL! https://codereview.chromium.org/2442583003/diff/20001/components/sync/engine_impl/model_type_registry.cc File components/sync/engine_impl/model_type_registry.cc (right): https://codereview.chromium.org/2442583003/diff/20001/components/sync/engine_impl/model_type_registry.cc#newcode147 components/sync/engine_impl/model_type_registry.cc:147: activation_context->model_type_state.initial_sync_done(); On 2016/10/21 15:34:19, skym wrote: > Do ...
4 years, 1 month ago (2016-10-24 19:02:19 UTC) #14
skym
https://codereview.chromium.org/2442583003/diff/20001/components/sync/engine_impl/model_type_registry.cc File components/sync/engine_impl/model_type_registry.cc (right): https://codereview.chromium.org/2442583003/diff/20001/components/sync/engine_impl/model_type_registry.cc#newcode149 components/sync/engine_impl/model_type_registry.cc:149: bool needs_migration = !initial_sync_done && has_directory_data; On 2016/10/24 19:02:17, ...
4 years, 1 month ago (2016-10-25 15:48:12 UTC) #22
maxbogue
PTAL. I've updated this CL to no longer actually perform migration until I can address ...
4 years, 1 month ago (2016-10-26 23:26:16 UTC) #24
skym
lgtm
4 years, 1 month ago (2016-10-27 14:14:14 UTC) #34
pavely
lgtm % comment in uss_migrator.cc https://codereview.chromium.org/2442583003/diff/100001/components/sync/engine_impl/uss_migrator.cc File components/sync/engine_impl/uss_migrator.cc (right): https://codereview.chromium.org/2442583003/diff/100001/components/sync/engine_impl/uss_migrator.cc#newcode49 components/sync/engine_impl/uss_migrator.cc:49: entity->mutable_specifics()->CopyFrom(entry.GetServerSpecifics()); If you were ...
4 years, 1 month ago (2016-10-27 23:20:19 UTC) #35
maxbogue
https://codereview.chromium.org/2442583003/diff/100001/components/sync/engine_impl/uss_migrator.cc File components/sync/engine_impl/uss_migrator.cc (right): https://codereview.chromium.org/2442583003/diff/100001/components/sync/engine_impl/uss_migrator.cc#newcode49 components/sync/engine_impl/uss_migrator.cc:49: entity->mutable_specifics()->CopyFrom(entry.GetServerSpecifics()); On 2016/10/27 23:20:19, pavely wrote: > If you ...
4 years, 1 month ago (2016-10-28 16:17:41 UTC) #36
pavely
https://codereview.chromium.org/2442583003/diff/100001/components/sync/engine_impl/uss_migrator.cc File components/sync/engine_impl/uss_migrator.cc (right): https://codereview.chromium.org/2442583003/diff/100001/components/sync/engine_impl/uss_migrator.cc#newcode49 components/sync/engine_impl/uss_migrator.cc:49: entity->mutable_specifics()->CopyFrom(entry.GetServerSpecifics()); On 2016/10/28 16:17:41, maxbogue wrote: > On 2016/10/27 ...
4 years, 1 month ago (2016-10-28 17:26:58 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2442583003/100001
4 years, 1 month ago (2016-10-28 17:53:38 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/292165)
4 years, 1 month ago (2016-10-28 18:05:11 UTC) #41
maxbogue
+isherman for histograms.xml
4 years, 1 month ago (2016-10-28 18:27:39 UTC) #43
Ilya Sherman
metrics lgtm
4 years, 1 month ago (2016-10-28 18:36:29 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2442583003/100001
4 years, 1 month ago (2016-10-28 18:37:26 UTC) #46
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-10-28 19:59:14 UTC) #48
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 20:01:25 UTC) #50
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/822cfab0275712dbd7d69673f68a32461b53c1bc
Cr-Commit-Position: refs/heads/master@{#428467}

Powered by Google App Engine
This is Rietveld 408576698