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

Issue 932143003: IndexedDB: Report QuotaExceededError when commit fails due to disk full (Closed)

Created:
5 years, 10 months ago by jsbell
Modified:
5 years, 10 months ago
Reviewers:
cmumford
CC:
chromium-reviews, darin-cc_chromium.org, dgrogan, jsbell+idb_chromium.org, jam, cmumford
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

IndexedDB: Report QuotaExceededError when commit fails due to disk full If a transaction commit fails, check to see if the underlying cause is "disk full" and report a more specific error. Usually the quota system prevents us from even trying to commit to disk if space is tight, but the disk could be filled by another process which the quota system is blissfully ignorant of. BUG=329628 R=cmumford@chromium.org Committed: https://crrev.com/6f21843a3f5b773b5af93e8e1b92570e6f668779 Cr-Commit-Position: refs/heads/master@{#317403}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Document ignored transactions #

Total comments: 3

Patch Set 3 : Move IndexedDBDatabaseError impl to cc file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -15 lines) Patch
M content/browser/indexed_db/indexed_db_browsertest.cc View 1 1 chunk +29 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database_error.h View 1 2 1 chunk +9 lines, -10 lines 0 comments Download
A content/browser/indexed_db/indexed_db_database_error.cc View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_transaction.cc View 2 chunks +12 lines, -4 lines 0 comments Download
M content/browser/indexed_db/mock_browsertest_indexed_db_class_factory.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/indexed_db/mock_browsertest_indexed_db_class_factory.cc View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A content/test/data/indexeddb/disk_full_on_commit.html View 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
jsbell
cmumford@ - can you take an initial look? I'm not ready to land this, but ...
5 years, 10 months ago (2015-02-19 19:05:44 UTC) #1
jsbell
https://codereview.chromium.org/932143003/diff/1/content/browser/indexed_db/indexed_db_browsertest.cc File content/browser/indexed_db/indexed_db_browsertest.cc (right): https://codereview.chromium.org/932143003/diff/1/content/browser/indexed_db/indexed_db_browsertest.cc#newcode445 content/browser/indexed_db/indexed_db_browsertest.cc:445: const int instance_num = 7; On 2015/02/19 19:05:44, jsbell ...
5 years, 10 months ago (2015-02-19 21:26:26 UTC) #2
cmumford
lgtm https://codereview.chromium.org/932143003/diff/20001/content/browser/indexed_db/indexed_db_database_error.h File content/browser/indexed_db/indexed_db_database_error.h (right): https://codereview.chromium.org/932143003/diff/20001/content/browser/indexed_db/indexed_db_database_error.h#newcode17 content/browser/indexed_db/indexed_db_database_error.h:17: IndexedDBDatabaseError() {} What do you think about getting ...
5 years, 10 months ago (2015-02-20 17:50:17 UTC) #3
jsbell
cmumford@ - one more look? https://codereview.chromium.org/932143003/diff/20001/content/browser/indexed_db/indexed_db_database_error.h File content/browser/indexed_db/indexed_db_database_error.h (right): https://codereview.chromium.org/932143003/diff/20001/content/browser/indexed_db/indexed_db_database_error.h#newcode17 content/browser/indexed_db/indexed_db_database_error.h:17: IndexedDBDatabaseError() {} On 2015/02/20 ...
5 years, 10 months ago (2015-02-20 18:27:02 UTC) #5
cmumford
RSLGTM
5 years, 10 months ago (2015-02-20 20:55:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/932143003/40001
5 years, 10 months ago (2015-02-20 21:08:15 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-20 21:18:00 UTC) #9
commit-bot: I haz the power
5 years, 10 months ago (2015-02-20 21:19:15 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6f21843a3f5b773b5af93e8e1b92570e6f668779
Cr-Commit-Position: refs/heads/master@{#317403}

Powered by Google App Engine
This is Rietveld 408576698