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

Issue 1072093002: [Sync] Update DirectoryBackingStore to detect Sync DB corruption (Closed)

Created:
5 years, 8 months ago by maniscalco
Modified:
5 years, 8 months ago
CC:
chromium-reviews, tim+watch_chromium.org, zea+watch_chromium.org, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Update DirectoryBackingStore to detect Sync DB corruption Leverage sql::Connection's error handling mechanism to detect "catastrophic" errors like SQLITE_CORRUPT. Add unit tests that verify behavior of SetCatastrophicErrorHandler and trigger DB corruption. Because handler is not installed by default, this change will have no impact on Sync's behavior. A future change will connect Directory to DirectoryBackingStore's to ensure Sync is shutdown when DB corruption occurs. This change depends on https://codereview.chromium.org/1069313004/. BUG=470993 Committed: https://crrev.com/4c4a52e3948bbf601248983afedb4e65d5a7ac2f Cr-Commit-Position: refs/heads/master@{#325135}

Patch Set 1 #

Patch Set 2 : Changes from self-review. #

Patch Set 3 : Fix BUILD.gn. #

Patch Set 4 : Add MessageLoop to DeferredOnDiskDirectoryBackingStoreTest. #

Patch Set 5 : Merge in issue 1075993003. #

Patch Set 6 : Merge with master. #

Patch Set 7 : Merge with master. #

Total comments: 7

Patch Set 8 : Apply CR feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -0 lines) Patch
M sync/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M sync/sync_tests.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M sync/syncable/deferred_on_disk_directory_backing_store_unittest.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M sync/syncable/directory_backing_store.h View 1 3 chunks +31 lines, -0 lines 0 comments Download
M sync/syncable/directory_backing_store.cc View 1 2 3 4 5 6 7 5 chunks +29 lines, -0 lines 0 comments Download
M sync/syncable/directory_backing_store_unittest.cc View 1 4 chunks +86 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
maniscalco
Hi Scott, would you please take a look at directory_backing_store_unittest.cc. I want to make sure ...
5 years, 8 months ago (2015-04-10 16:31:35 UTC) #2
maniscalco
Nicolas, would you please review this change?
5 years, 8 months ago (2015-04-13 19:54:41 UTC) #4
Nicolas Zea
LGTM https://codereview.chromium.org/1072093002/diff/120001/sync/sync_tests.gypi File sync/sync_tests.gypi (right): https://codereview.chromium.org/1072093002/diff/120001/sync/sync_tests.gypi#newcode252 sync/sync_tests.gypi:252: '../sql/sql.gyp:test_support_sql', strange, does sql have the target named ...
5 years, 8 months ago (2015-04-13 20:16:33 UTC) #5
Scott Hess - ex-Googler
LGTM, I think this seems reasonable. I'm slightly nervous about whether the "post a task ...
5 years, 8 months ago (2015-04-13 20:26:46 UTC) #6
maniscalco
On 2015/04/13 20:26:46, Scott Hess wrote: > LGTM, I think this seems reasonable. > > ...
5 years, 8 months ago (2015-04-14 16:11:59 UTC) #7
maniscalco
https://codereview.chromium.org/1072093002/diff/120001/sync/sync_tests.gypi File sync/sync_tests.gypi (right): https://codereview.chromium.org/1072093002/diff/120001/sync/sync_tests.gypi#newcode252 sync/sync_tests.gypi:252: '../sql/sql.gyp:test_support_sql', On 2015/04/13 20:16:33, Nicolas Zea wrote: > strange, ...
5 years, 8 months ago (2015-04-14 17:44:15 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072093002/140001
5 years, 8 months ago (2015-04-14 19:27:32 UTC) #11
Scott Hess - ex-Googler
On 2015/04/14 16:11:59, maniscalco wrote: > On 2015/04/13 20:26:46, Scott Hess wrote: > > LGTM, ...
5 years, 8 months ago (2015-04-14 19:51:01 UTC) #12
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 8 months ago (2015-04-14 21:50:27 UTC) #13
commit-bot: I haz the power
5 years, 8 months ago (2015-04-14 21:51:45 UTC) #14
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/4c4a52e3948bbf601248983afedb4e65d5a7ac2f
Cr-Commit-Position: refs/heads/master@{#325135}

Powered by Google App Engine
This is Rietveld 408576698