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

Issue 1236583002: Try to reset quota database which is suspected to be corrupted (Closed)

Created:
5 years, 5 months ago by alexanderk
Modified:
5 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Try to reset quota database which is suspected to be corrupted If we are able to open quota database file but cannot create a table then we suspect it to be corrupted and trying to reset. BUG=508916 Committed: https://crrev.com/aba1d19017e23be931303a3274b035861da3e4ae Cr-Commit-Position: refs/heads/master@{#345966}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Reworked in more logical way. Added unittest #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -5 lines) Patch
M content/browser/quota/quota_database_unittest.cc View 1 3 chunks +18 lines, -0 lines 1 comment Download
M storage/browser/quota/quota_database.cc View 1 1 chunk +10 lines, -5 lines 0 comments Download

Messages

Total messages: 31 (10 generated)
alexanderk
5 years, 5 months ago (2015-07-10 13:02:02 UTC) #1
alexanderk
5 years, 5 months ago (2015-07-23 11:29:50 UTC) #3
dgrogan
This seems fine to me, but could you dig up the CL where EnsureDatabaseVersion was ...
5 years, 5 months ago (2015-07-23 16:15:04 UTC) #5
dgrogan
Also, a test would be good.
5 years, 5 months ago (2015-07-23 16:17:48 UTC) #6
michaeln
thnx for the cl! https://codereview.chromium.org/1236583002/diff/1/storage/browser/quota/quota_database.cc File storage/browser/quota/quota_database.cc (right): https://codereview.chromium.org/1236583002/diff/1/storage/browser/quota/quota_database.cc#newcode456 storage/browser/quota/quota_database.cc:456: opened = db_->Open(db_file_path_); It looks ...
5 years, 5 months ago (2015-07-23 19:54:18 UTC) #7
alexanderk
On 2015/07/23 19:54:18, michaeln wrote: > thnx for the cl! > > https://codereview.chromium.org/1236583002/diff/1/storage/browser/quota/quota_database.cc > File ...
5 years, 5 months ago (2015-07-24 13:43:50 UTC) #8
michaeln
lgtm thnx! https://codereview.chromium.org/1236583002/diff/20001/content/browser/quota/quota_database_unittest.cc File content/browser/quota/quota_database_unittest.cc (right): https://codereview.chromium.org/1236583002/diff/20001/content/browser/quota/quota_database_unittest.cc#newcode51 content/browser/quota/quota_database_unittest.cc:51: void Reopen(const base::FilePath& kDbFile) { very funky ...
5 years, 5 months ago (2015-07-25 00:54:58 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1236583002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1236583002/20001
5 years, 3 months ago (2015-08-27 07:44:46 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/93519)
5 years, 3 months ago (2015-08-27 07:53:16 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1236583002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1236583002/20001
5 years, 3 months ago (2015-08-27 16:14:19 UTC) #17
dgrogan
I'm going to try to make michaeln an OWNER for content/browser/quota in https://codereview.chromium.org/1320463005
5 years, 3 months ago (2015-08-27 16:22:18 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/93664)
5 years, 3 months ago (2015-08-27 16:24:16 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1236583002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1236583002/20001
5 years, 3 months ago (2015-08-27 19:55:52 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 3 months ago (2015-08-27 20:02:46 UTC) #23
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/aba1d19017e23be931303a3274b035861da3e4ae Cr-Commit-Position: refs/heads/master@{#345966}
5 years, 3 months ago (2015-08-27 20:04:10 UTC) #24
dewittj
fyi, this seems to have caused the following failure: https://build.chromium.org/p/chromium.linux/builders/Linux%20Tests%20%28dbg%29%281%29%2832%29/builds/18687
5 years, 3 months ago (2015-08-27 20:57:56 UTC) #26
dewittj
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1314523003/ by dewittj@chromium.org. ...
5 years, 3 months ago (2015-08-27 20:59:36 UTC) #27
michaeln
oooops, we forgot to use a sql::ScopedErrorIgnorer for the new test :(
5 years, 3 months ago (2015-08-27 21:18:41 UTC) #28
michaeln
On 2015/08/27 21:18:41, michaeln wrote: > oooops, we forgot to use a sql::ScopedErrorIgnorer for the ...
5 years, 3 months ago (2015-08-27 22:49:20 UTC) #29
dgrogan
On 2015/08/27 22:49:20, michaeln wrote: > On 2015/08/27 21:18:41, michaeln wrote: > > oooops, we ...
5 years, 3 months ago (2015-08-27 22:58:34 UTC) #30
michaeln
5 years, 3 months ago (2015-08-27 23:35:00 UTC) #31
Message was sent while issue was closed.
> Is it a bug that this wasn't caught by the try bots?

i think it wasn't tried, no dbg try bot ran content_unittests

Powered by Google App Engine
This is Rietveld 408576698