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

Issue 50493012: [sql] Recover Favicons v5 databases, with more recovery automation. (Closed)

Created:
7 years, 1 month ago by Scott Hess - ex-Googler
Modified:
7 years, 1 month ago
CC:
chromium-reviews, Ilya Sherman, browser-components-watch_chromium.org, jar (doing other things), asvitkine+watch_chromium.org
Visibility:
Public.

Description

[sql] Recover Favicons v5 databases, with more recovery automation. An entirely automated recovery system runs afoul of questions about whether the corrupt database's schema can be trusted. sql::Recovery::AutoRecoverTable() uses a schema created by the caller to construct the recovery virtual table and then copies the data over. sql::Recovery::SetupMeta() and GetMetaVersionNumber() simplify accessing meta-table info in the corrupt database. sql::test::IntegrityCheck() and CorruptSizeInHeader() helpers to simplify common testing operations. Rewrite ThumbnailDatabase v6 and v7 recovery code and tests using these changes, and add a v5 recovery path. Additionally handle deprecated versions. BUG=240396, 109482 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=235492

Patch Set 1 #

Patch Set 2 : rebase and cleanup #

Total comments: 7

Patch Set 3 : Address nits. #

Patch Set 4 : Rebase, merge rows-recovered support. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+910 lines, -247 lines) Patch
M chrome/browser/history/thumbnail_database.cc View 1 2 3 4 chunks +178 lines, -176 lines 0 comments Download
M chrome/browser/history/thumbnail_database_unittest.cc View 6 chunks +61 lines, -50 lines 0 comments Download
M sql/connection_unittest.cc View 2 chunks +3 lines, -20 lines 0 comments Download
M sql/recovery.h View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
M sql/recovery.cc View 1 2 3 2 chunks +174 lines, -0 lines 0 comments Download
M sql/recovery_unittest.cc View 1 2 3 3 chunks +331 lines, -1 line 0 comments Download
M sql/test/test_helpers.h View 1 3 chunks +17 lines, -0 lines 0 comments Download
M sql/test/test_helpers.cc View 1 2 chunks +71 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Scott Hess - ex-Googler
Getting to the big time! So far, things have been going well. The histogrammed failure ...
7 years, 1 month ago (2013-10-31 22:15:58 UTC) #1
pkotwicz
I will take a look at the CL on Saturday
7 years, 1 month ago (2013-11-01 15:05:51 UTC) #2
Scott Hess - ex-Googler
On 2013/11/01 15:05:51, pkotwicz wrote: > I will take a look at the CL on ...
7 years, 1 month ago (2013-11-01 15:10:13 UTC) #3
pkotwicz
LGTM with a few comments https://codereview.chromium.org/50493012/diff/70001/chrome/browser/history/thumbnail_database.cc File chrome/browser/history/thumbnail_database.cc (right): https://codereview.chromium.org/50493012/diff/70001/chrome/browser/history/thumbnail_database.cc#newcode289 chrome/browser/history/thumbnail_database.cc:289: "CREATE TABLE favicons(" Nit: ...
7 years, 1 month ago (2013-11-04 02:38:30 UTC) #4
Scott Hess - ex-Googler
Thanks for the expedient review! I'm going to hold off check-in until after the branch ...
7 years, 1 month ago (2013-11-04 21:41:39 UTC) #5
Scott Hess - ex-Googler
[Sorry for the long delay, I was ill last week.] sky@ OWNERS for history/ jar@ ...
7 years, 1 month ago (2013-11-12 20:25:24 UTC) #6
jar (doing other things)
histograms.xml LGTM
7 years, 1 month ago (2013-11-12 23:32:28 UTC) #7
Scott Hess - ex-Googler
On 2013/11/12 20:25:24, shess wrote: > sky@ OWNERS for history/ Ping for sky@. Thanks.
7 years, 1 month ago (2013-11-14 00:49:05 UTC) #8
sky
LGTM
7 years, 1 month ago (2013-11-14 22:47:00 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/50493012/220001
7 years, 1 month ago (2013-11-14 23:39:14 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/50493012/220001
7 years, 1 month ago (2013-11-15 01:16:31 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/50493012/220001
7 years, 1 month ago (2013-11-15 03:48:28 UTC) #12
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=190546
7 years, 1 month ago (2013-11-15 07:14:10 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/50493012/220001
7 years, 1 month ago (2013-11-15 07:25:33 UTC) #14
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) nacl_integration http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=225029
7 years, 1 month ago (2013-11-15 11:47:29 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/50493012/220001
7 years, 1 month ago (2013-11-15 18:22:35 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/50493012/220001
7 years, 1 month ago (2013-11-15 21:50:08 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/50493012/220001
7 years, 1 month ago (2013-11-16 00:17:22 UTC) #18
commit-bot: I haz the power
7 years, 1 month ago (2013-11-16 01:52:07 UTC) #19
Message was sent while issue was closed.
Change committed as 235492

Powered by Google App Engine
This is Rietveld 408576698