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

Issue 8922015: [Sync] Don't commit items with predecessors/parents in conflict. (Closed)

Created:
9 years ago by Nicolas Zea
Modified:
8 years, 10 months ago
Reviewers:
rlarocque
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin, tim (not reviewing), Paweł Hajdan Jr.
Visibility:
Public.

Description

[Sync] Don't commit items with predecessors/parents in conflict. We now only consider an item committable if it and all it's immediate predecessors are not in conflict, and if it has a valid parent. This finishes the work to prevent conflicting entries from committing and allows us to preserve positional changes when in conflict. BUG=82236 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=120629

Patch Set 1 #

Patch Set 2 : Fix typos #

Patch Set 3 : Rebase #

Total comments: 4

Patch Set 4 : Rewrite much of GetCommitId's. Fix conflict resolver to handle position changes #

Patch Set 5 : Fix test #

Patch Set 6 : Fix tests #

Patch Set 7 : Fix windows #

Patch Set 8 : Ensure we clear BASE_SERVER_SPECIFICS #

Total comments: 16

Patch Set 9 : More comments. Add racy test case #

Total comments: 5

Patch Set 10 : Split patches #

Patch Set 11 : Rebase + streamline #

Total comments: 5

Patch Set 12 : Comments + rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+311 lines, -297 lines) Patch
M chrome/browser/sync/engine/get_commit_ids_command.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +70 lines, -111 lines 0 comments Download
M chrome/browser/sync/engine/get_commit_ids_command.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +183 lines, -110 lines 0 comments Download
M chrome/browser/sync/engine/syncer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +50 lines, -76 lines 0 comments Download
M chrome/browser/sync/sessions/ordered_commit_set.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/sessions/ordered_commit_set.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Nicolas Zea
PTAL. Diffed off http://codereview.chromium.org/8770032/, which is itself diffed off http://codereview.chromium.org/8917031/
9 years ago (2011-12-14 01:15:32 UTC) #1
akalin
Just a few nits. Still reading through the CL, don't quite get it yet... http://codereview.chromium.org/8922015/diff/6001/chrome/browser/sync/engine/get_commit_ids_command.cc ...
9 years ago (2011-12-14 03:39:52 UTC) #2
akalin
Took a detailed look, just one question http://codereview.chromium.org/8922015/diff/6001/chrome/browser/sync/engine/get_commit_ids_command.h File chrome/browser/sync/engine/get_commit_ids_command.h (right): http://codereview.chromium.org/8922015/diff/6001/chrome/browser/sync/engine/get_commit_ids_command.h#newcode135 chrome/browser/sync/engine/get_commit_ids_command.h:135: // returns ...
9 years ago (2011-12-15 01:58:20 UTC) #3
Nicolas Zea
-Fred (out of town), +Nick. Mind taking a look and ensuring the logic matches the ...
8 years, 11 months ago (2011-12-30 00:02:28 UTC) #4
ncarter (slow)
http://codereview.chromium.org/8922015/diff/18015/chrome/browser/sync/engine/conflict_resolver.cc File chrome/browser/sync/engine/conflict_resolver.cc (right): http://codereview.chromium.org/8922015/diff/18015/chrome/browser/sync/engine/conflict_resolver.cc#newcode150 chrome/browser/sync/engine/conflict_resolver.cc:150: (server_prev_id == entry.Get(syncable::PREV_ID)); The comment about 'conservative' could be ...
8 years, 11 months ago (2012-01-04 21:37:59 UTC) #5
rlarocque
ncarter asked me to take a look at this while he was on vacation. I ...
8 years, 11 months ago (2012-01-10 23:39:50 UTC) #6
Nicolas Zea
Please take another look. Functionally nothing has changed, but I have added substantial comments about ...
8 years, 11 months ago (2012-01-18 02:54:39 UTC) #7
rlarocque
I will keep reading, but I'm taking a break for now. http://codereview.chromium.org/8922015/diff/18015/chrome/browser/sync/engine/conflict_resolver.cc File chrome/browser/sync/engine/conflict_resolver.cc (right): ...
8 years, 11 months ago (2012-01-18 20:21:55 UTC) #8
Nicolas Zea
http://codereview.chromium.org/8922015/diff/18015/chrome/browser/sync/engine/conflict_resolver.cc File chrome/browser/sync/engine/conflict_resolver.cc (right): http://codereview.chromium.org/8922015/diff/18015/chrome/browser/sync/engine/conflict_resolver.cc#newcode147 chrome/browser/sync/engine/conflict_resolver.cc:147: syncable::Id server_prev_id = entry.ComputePrevIdFromServerPosition( On 2012/01/18 20:21:55, rlarocque wrote: ...
8 years, 11 months ago (2012-01-18 20:40:42 UTC) #9
rlarocque
Thanks, that makes thing much clearer. I had missed the fact that there was a ...
8 years, 11 months ago (2012-01-20 02:08:49 UTC) #10
rlarocque
That's all for now. Sorry this took so long. I'm having some trouble grasping the ...
8 years, 11 months ago (2012-01-20 06:26:51 UTC) #11
Nicolas Zea
Okay, I cut out some of the code I changed, including the deletion logic changes ...
8 years, 10 months ago (2012-02-02 23:59:09 UTC) #12
rlarocque
Looks good. Probably better than the old logic. I have a few minor comments. LGTM ...
8 years, 10 months ago (2012-02-04 01:00:45 UTC) #13
Nicolas Zea
Committing once trybots go green http://codereview.chromium.org/8922015/diff/56002/chrome/browser/sync/engine/get_commit_ids_command.cc File chrome/browser/sync/engine/get_commit_ids_command.cc (right): http://codereview.chromium.org/8922015/diff/56002/chrome/browser/sync/engine/get_commit_ids_command.cc#newcode51 chrome/browser/sync/engine/get_commit_ids_command.cc:51: // We filter out ...
8 years, 10 months ago (2012-02-06 17:29:56 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/8922015/61001
8 years, 10 months ago (2012-02-06 19:10:07 UTC) #15
commit-bot: I haz the power
8 years, 10 months ago (2012-02-06 22:08:50 UTC) #16
Change committed as 120629

Powered by Google App Engine
This is Rietveld 408576698