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

Issue 2350803005: [Sync] Fixing two bugs in the worker revealed by trying to add an encryption integration test. (Closed)

Created:
4 years, 3 months ago by skym
Modified:
4 years, 3 months ago
Reviewers:
maxbogue
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Fixing two bugs in the worker revealed by trying to add an encryption integration test. The first bug was we were trying to start a nested cycle cycle, which is not allowed. The logic in the worker that tries to nudge in response to encryption changing is super old, and doesn't make any sense, so this was fixed by simply not nudging. If there needs to be a commit in response to encryption changing, the processor will drive this. The second issue was that in certain cases the worker would try to commit something with an id but not a version. This isn't supposed to be able to happen. Turns out two quick commits could get us into this state because both would be created by the processor before getting valid version data. However, the WorkerEntityTracker can detect this is happening and has enough information to make things right. BUG=647875 Committed: https://crrev.com/946cbb1044cabe81b6a6758f9140089e60fc1950 Cr-Commit-Position: refs/heads/master@{#420471}

Patch Set 1 #

Patch Set 2 : Removing debugging log statements. #

Total comments: 16

Patch Set 3 : Reducing scope of CL to only fixing two bugs. #

Patch Set 4 : Merging conflict. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -41 lines) Patch
M components/sync/core/processor_entity_tracker_unittest.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M components/sync/engine_impl/model_type_worker.cc View 1 2 3 2 chunks +2 lines, -7 lines 0 comments Download
M components/sync/engine_impl/model_type_worker_unittest.cc View 1 2 8 chunks +32 lines, -33 lines 0 comments Download
M components/sync/engine_impl/worker_entity_tracker.cc View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M components/sync/engine_impl/worker_entity_tracker_unittest.cc View 1 chunk +17 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (17 generated)
skym
PTAL
4 years, 3 months ago (2016-09-20 23:25:11 UTC) #4
maxbogue
https://codereview.chromium.org/2350803005/diff/20001/chrome/browser/sync/test/integration/two_client_uss_sync_test.cc File chrome/browser/sync/test/integration/two_client_uss_sync_test.cc (right): https://codereview.chromium.org/2350803005/diff/20001/chrome/browser/sync/test/integration/two_client_uss_sync_test.cc#newcode314 chrome/browser/sync/test/integration/two_client_uss_sync_test.cc:314: model1->WriteItem(kKey1, kValue1); What are each of these four items ...
4 years, 3 months ago (2016-09-21 00:57:14 UTC) #8
skym
https://codereview.chromium.org/2350803005/diff/20001/chrome/browser/sync/test/integration/two_client_uss_sync_test.cc File chrome/browser/sync/test/integration/two_client_uss_sync_test.cc (right): https://codereview.chromium.org/2350803005/diff/20001/chrome/browser/sync/test/integration/two_client_uss_sync_test.cc#newcode314 chrome/browser/sync/test/integration/two_client_uss_sync_test.cc:314: model1->WriteItem(kKey1, kValue1); On 2016/09/21 00:57:14, maxbogue wrote: > What ...
4 years, 3 months ago (2016-09-22 18:58:52 UTC) #12
maxbogue
lgtm
4 years, 3 months ago (2016-09-22 19:55:58 UTC) #15
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/2350803005/40001
4 years, 3 months ago (2016-09-22 20:40:52 UTC) #17
commit-bot: I haz the power
Failed to apply patch for components/sync/engine_impl/model_type_worker.cc: While running git apply --index -3 -p1; error: patch ...
4 years, 3 months ago (2016-09-22 20:46:58 UTC) #19
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/2350803005/60001
4 years, 3 months ago (2016-09-22 20:51:17 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-22 21:46:37 UTC) #24
commit-bot: I haz the power
4 years, 3 months ago (2016-09-22 21:50:07 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/946cbb1044cabe81b6a6758f9140089e60fc1950
Cr-Commit-Position: refs/heads/master@{#420471}

Powered by Google App Engine
This is Rietveld 408576698