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

Issue 1832173002: [sql] Database recovery system for Shortcuts. (Closed)

Created:
4 years, 9 months ago by Scott Hess - ex-Googler
Modified:
4 years, 5 months ago
Reviewers:
Mark P
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[sql] Database recovery system for Shortcuts. sql::Recovery provides a conservative recovery system which requires some overhead in the client code. Such code exists for the "Top Sites" and Favicons databases, and has shown that the easy-to-handle cases dominate. Implement a helper function to recover an entire database, and apply it to the Shortcuts database. BUG=597785 Committed: https://crrev.com/a402e75a80c13fab013100447b31a00ff6b3a0f5 Cr-Commit-Position: refs/heads/master@{#403576}

Patch Set 1 #

Patch Set 2 : iOS SQLite doesn't support column names in view definition. #

Total comments: 97

Patch Set 3 : Rebase, scoped_ptr to unique_ptr in new code #

Patch Set 4 : Address review comments from #9 and #10. #

Total comments: 48

Patch Set 5 : Rebase #

Patch Set 6 : Address review comments through #14. I think. #

Patch Set 7 : rebase #

Total comments: 10

Patch Set 8 : std::count returns ptrdiff_t, various comment changes. #

Total comments: 5

Patch Set 9 : Trim comments, histogram comments, drop enum from histogram. #

Total comments: 1

Patch Set 10 : grammar #

Unified diffs Side-by-side diffs Delta from patch set Stats (+442 lines, -26 lines) Patch
M components/omnibox/browser/shortcuts_database.cc View 1 2 3 4 5 6 7 8 4 chunks +47 lines, -14 lines 0 comments Download
M components/omnibox/browser/shortcuts_database_unittest.cc View 1 2 3 4 5 6 7 4 chunks +72 lines, -2 lines 0 comments Download
M sql/connection.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M sql/recovery.h View 1 2 3 4 5 6 7 8 2 chunks +27 lines, -7 lines 0 comments Download
M sql/recovery.cc View 1 2 3 4 5 6 7 8 9 2 chunks +202 lines, -0 lines 0 comments Download
M sql/recovery_unittest.cc View 1 2 3 4 5 6 7 1 chunk +65 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 2 chunks +27 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 59 (18 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1832173002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1832173002/20001
4 years, 9 months ago (2016-03-25 21:20:51 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-25 22:35:51 UTC) #4
Scott Hess - ex-Googler
I realize this is an SQLite-heavy review, but, unfortunately, the collection of SQLite-centric people on ...
4 years, 9 months ago (2016-03-25 23:24:32 UTC) #6
Mark P
On 2016/03/25 23:24:32, Scott Hess wrote: > I realize this is an SQLite-heavy review, but, ...
4 years, 8 months ago (2016-03-28 19:27:59 UTC) #7
Scott Hess - ex-Googler
On 2016/03/28 19:27:59, Mark P wrote: > On 2016/03/25 23:24:32, Scott Hess wrote: > > ...
4 years, 8 months ago (2016-03-28 20:01:54 UTC) #8
Mark P
https://codereview.chromium.org/1832173002/diff/20001/components/omnibox/browser/shortcuts_database.cc File components/omnibox/browser/shortcuts_database.cc (right): https://codereview.chromium.org/1832173002/diff/20001/components/omnibox/browser/shortcuts_database.cc#newcode68 components/omnibox/browser/shortcuts_database.cc:68: // contradicts itself, but SQLite is able to read ...
4 years, 8 months ago (2016-04-07 23:09:44 UTC) #9
Mark P
Phew. There are all your comments. It's unclear whether I found any bugs the process... ...
4 years, 8 months ago (2016-04-08 20:12:07 UTC) #10
Scott Hess - ex-Googler
Rebase, scoped_ptr to unique_ptr in new code
4 years, 8 months ago (2016-04-14 23:55:34 UTC) #11
Scott Hess - ex-Googler
Address review comments from #9 and #10.
4 years, 8 months ago (2016-04-15 00:35:40 UTC) #12
Scott Hess - ex-Googler
On 2016/04/08 20:12:07, Mark P wrote: > Phew. > > There are all your comments. ...
4 years, 8 months ago (2016-04-15 00:38:16 UTC) #13
Mark P
Here's another full pass through the code. Apologies that I didn't bother replying to your ...
4 years, 8 months ago (2016-04-19 23:34:29 UTC) #14
Scott Hess - ex-Googler
Sorry about the long delay - I had kind of a poor April experience. For ...
4 years, 7 months ago (2016-05-13 21:24:37 UTC) #15
Scott Hess - ex-Googler
Apologies - I see some unrelated rebase action in there. I'm going to back out ...
4 years, 7 months ago (2016-05-13 21:26:52 UTC) #16
Scott Hess - ex-Googler
Rebase
4 years, 7 months ago (2016-05-13 21:29:36 UTC) #18
Scott Hess - ex-Googler
Rebase
4 years, 7 months ago (2016-05-13 21:34:26 UTC) #20
Scott Hess - ex-Googler
Rebase
4 years, 7 months ago (2016-05-13 21:37:27 UTC) #22
Scott Hess - ex-Googler
Address review comments through #14. I think.
4 years, 7 months ago (2016-05-13 21:39:06 UTC) #23
Mark P
I assume it's okay to wait until both other changelists are submitted before coming back ...
4 years, 6 months ago (2016-06-08 22:15:38 UTC) #24
Scott Hess - ex-Googler
On 2016/06/08 22:15:38, Mark P wrote: > I assume it's okay to wait until both ...
4 years, 6 months ago (2016-06-08 23:34:34 UTC) #25
Scott Hess - ex-Googler
rebase
4 years, 6 months ago (2016-06-25 00:35:32 UTC) #26
Scott Hess - ex-Googler
On 2016/06/25 00:35:32, Scott Hess wrote: > rebase If that emailed, note that I haven't ...
4 years, 6 months ago (2016-06-25 00:43:07 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1832173002/180001
4 years, 6 months ago (2016-06-25 00:43:33 UTC) #29
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device-gn on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-gn/builds/26855)
4 years, 6 months ago (2016-06-25 00:57:22 UTC) #31
Scott Hess - ex-Googler
std::count returns ptrdiff_t, various comment changes.
4 years, 5 months ago (2016-06-27 21:33:26 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1832173002/200001
4 years, 5 months ago (2016-06-27 21:35:26 UTC) #34
Scott Hess - ex-Googler
OK, I think the open comments have been addressed, except the histograms.xml one I've noted ...
4 years, 5 months ago (2016-06-27 21:35:38 UTC) #35
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/192521)
4 years, 5 months ago (2016-06-27 22:39:07 UTC) #37
Mark P
comments are on both patchset #7 and #8. (Apologies, I was in the middle of ...
4 years, 5 months ago (2016-06-27 23:20:13 UTC) #38
Scott Hess - ex-Googler
My day is looking such that if I'm lucky, I can circle back this evening. ...
4 years, 5 months ago (2016-06-28 22:28:28 UTC) #39
Mark P
On Tue, Jun 28, 2016 at 3:28 PM, <shess@chromium.org> wrote: > My day is looking ...
4 years, 5 months ago (2016-06-28 22:38:29 UTC) #40
Scott Hess - ex-Googler
Trim comments, histogram comments, drop enum from histogram.
4 years, 5 months ago (2016-06-29 21:37:38 UTC) #41
Scott Hess - ex-Googler
ptal, thx. https://codereview.chromium.org/1832173002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/1832173002/diff/60001/tools/metrics/histograms/histograms.xml#oldcode83764 tools/metrics/histograms/histograms.xml:83764: <int value="19" label="RECOVERY_FAILED_META_NO_VERSION"> On 2016/05/13 21:24:36, Scott ...
4 years, 5 months ago (2016-06-29 21:39:30 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1832173002/220001
4 years, 5 months ago (2016-06-29 21:47:52 UTC) #44
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/96216)
4 years, 5 months ago (2016-06-29 22:16:19 UTC) #46
Mark P
lgtm (with one trivial nit below) (at last!) Happy Friday! (and enjoy your time away) ...
4 years, 5 months ago (2016-07-01 22:40:55 UTC) #47
Scott Hess - ex-Googler
grammar
4 years, 5 months ago (2016-07-01 23:18:05 UTC) #48
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/1832173002/240001
4 years, 5 months ago (2016-07-01 23:23:03 UTC) #54
commit-bot: I haz the power
Committed patchset #10 (id:240001)
4 years, 5 months ago (2016-07-02 00:25:27 UTC) #55
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-02 00:25:35 UTC) #56
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/a402e75a80c13fab013100447b31a00ff6b3a0f5 Cr-Commit-Position: refs/heads/master@{#403576}
4 years, 5 months ago (2016-07-02 00:28:40 UTC) #58
Scott Hess - ex-Googler
4 years, 5 months ago (2016-07-02 04:29:29 UTC) #59
Message was sent while issue was closed.
On 2016/07/02 00:28:40, commit-bot: I haz the power wrote:
> Patchset 10 (id:??) landed as
> https://crrev.com/a402e75a80c13fab013100447b31a00ff6b3a0f5
> Cr-Commit-Position: refs/heads/master@{#403576}

To future build or stability sheriffs,

I'm going to be in-and-out of town for a bit, here.  I have a couple points
where I can make time to check-in on things, and I intend to mostly to check on
the progress of this CL.  If this is definitely breaking the thing, revert it! 
But if it just needs to be disabled, I put up a CL for that:
   https://codereview.chromium.org/2114823003/

Powered by Google App Engine
This is Rietveld 408576698