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

Issue 283143002: sync: Improve handling of bad UniquePos (retry) (Closed)

Created:
6 years, 7 months ago by rlarocque
Modified:
6 years, 7 months ago
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

sync: Improve handling of bad UniquePos (retry) Retry: The first attempt had a memory leak. It seems that this leak existed before this CL, but no code exercised it. This updated CL includes a scoped deleter that should fix it. Original commits message was: Makes the client assign a valid position to incoming bookmarks if the server has not populated the required fields. This code should never be triggered unless there is a bug in the server. This risks reordering users' bookmarks, but that's probably preferable to a crash. This fallback code is still protected by a NOTREACHED(), as before. Detects bookmarks that do not have valid position information during database load. If these corrupted bookmarks are detected, the entire database is declared to be corrupt. Sync will then re-download all of the user's data, which should fix the problem. BUG=367247 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270837

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -14 lines) Patch
M sync/engine/syncer_util.h View 2 chunks +6 lines, -3 lines 0 comments Download
M sync/engine/syncer_util.cc View 4 chunks +6 lines, -6 lines 0 comments Download
A sync/engine/syncer_util_unittest.cc View 1 chunk +127 lines, -0 lines 0 comments Download
M sync/internal_api/public/base/unique_position.h View 1 chunk +4 lines, -0 lines 0 comments Download
M sync/internal_api/public/base/unique_position.cc View 3 chunks +10 lines, -1 line 0 comments Download
M sync/sync_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M sync/syncable/directory.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M sync/syncable/directory_backing_store.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M sync/syncable/directory_unittest.cc View 2 chunks +37 lines, -0 lines 0 comments Download
M sync/syncable/syncable_unittest.cc View 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
rlarocque
This should fix the issue that resulted in the previous patch being reverted. The change ...
6 years, 7 months ago (2014-05-14 22:09:47 UTC) #1
maniscalco
lgtm
6 years, 7 months ago (2014-05-14 22:34:33 UTC) #2
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 7 months ago (2014-05-14 22:41:42 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/283143002/1
6 years, 7 months ago (2014-05-14 22:42:36 UTC) #4
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-14 22:42:37 UTC) #5
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 7 months ago (2014-05-14 22:42:37 UTC) #6
tim (not reviewing)
On 2014/05/14 22:42:37, I haz the power (commit-bot) wrote: > No LGTM from a valid ...
6 years, 7 months ago (2014-05-15 20:17:16 UTC) #7
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 7 months ago (2014-05-15 20:21:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/283143002/1
6 years, 7 months ago (2014-05-15 20:22:10 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-15 21:49:11 UTC) #10
commit-bot: I haz the power
6 years, 7 months ago (2014-05-15 22:47:22 UTC) #11
Message was sent while issue was closed.
Change committed as 270837

Powered by Google App Engine
This is Rietveld 408576698