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

Issue 2956913002: History init: add metrics and skip migration. (Closed)

Created:
3 years, 5 months ago by brettw
Modified:
3 years, 5 months ago
CC:
chromium-reviews
Target Ref:
refs/branch-heads/3112
Project:
chromium
Visibility:
Public.

Description

History init: add metrics and skip migration. Removes the migration code to history DB version 34. This version did a large migration of the URL table which can use several MB of disk storage. The suspicion is that this is causing more initialization failures for users with full devices. The change in version 34 is to add an AUTOINCREMENT tag on the primary key. This is required for some sync work that is in progress but is not complete, so skipping this migration step won't break any users. We will need to fix this before rolling out the new sync features. The 34 change also removed the favicon_id column. Because some databases may have the column and some won't, the code to copy to the in-memory database (which previously was implicit) now lists the columns to copy explicitly. Adds UMA logging for history database initialization failures, as well as versions for migration failures. Logging for the Sqlite error code for the various failure states may have been nice but would have required more plumbing and seemed impractical for now. There is one behavior change the error logging resulted in: errors migrating to version 22 were previously ignored but are now fatal. I believe continuing in this case was a mistake. This will only affect users migrating from an Android Chrome version prior to 2012, and failures here will likely be fatal anyway. BUG=734194, 736136 R=dtrainor@chromium.org, gangwu@chromium.org, mpearson@chromium.org, yzshen@chromium.org Review-Url: https://codereview.chromium.org/2954593002 . Cr-Original-Commit-Position: refs/heads/master@{#481958} Review-Url: https://codereview.chromium.org/2956913002 . Cr-Commit-Position: refs/branch-heads/3112@{#465} Cr-Branched-From: b6460e24cf59f429d69de255538d0fc7a425ccf9-refs/heads/master@{#474897} Committed: https://chromium.googlesource.com/chromium/src/+/81fc74ee0a399613c2f4d054c363744ccfe2e291

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -77 lines) Patch
M components/history/core/browser/history_backend.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M components/history/core/browser/history_database.cc View 8 chunks +99 lines, -71 lines 0 comments Download
M components/history/core/browser/in_memory_database.cc View 1 chunk +16 lines, -1 line 0 comments Download
M components/history/core/browser/url_database.cc View 1 chunk +18 lines, -5 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 chunk +9 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 3 chunks +33 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
brettw
3 years, 5 months ago (2017-06-26 17:27:00 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
81fc74ee0a399613c2f4d054c363744ccfe2e291.

Powered by Google App Engine
This is Rietveld 408576698