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

Issue 2862943002: SimpleCache: try to recover on CreateEntry on missing cache dir (Closed)

Created:
3 years, 7 months ago by Maks Orlovich
Modified:
3 years, 7 months ago
Reviewers:
pasko, jkarlin
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

We seem to be failing a non-trivial portion of creates on Android in this case, and it's easy enough to just mkdir it --- that will happen eventually on index saving, anyway, but may take a long time in the case where the user is actively browsing. BUG=718900 Review-Url: https://codereview.chromium.org/2862943002 Cr-Commit-Position: refs/heads/master@{#471770} Committed: https://chromium.googlesource.com/chromium/src/+/2d841835e729da2bef43897070bc83568e783b4c

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add test Tweak code to not have an action after many pure conditionals. #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -1 line) Patch
M net/disk_cache/entry_unittest.cc View 1 2 2 chunks +22 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_synchronous_entry.cc View 1 1 chunk +12 lines, -1 line 0 comments Download

Messages

Total messages: 26 (13 generated)
Maks Orlovich
(Including mmenke as the test would need //net approval, not just simple_cache)
3 years, 7 months ago (2017-05-05 16:42:08 UTC) #4
mmenke
[+jkarlin]: Deferring to jkarlin on this one.
3 years, 7 months ago (2017-05-05 17:01:21 UTC) #6
jkarlin
https://codereview.chromium.org/2862943002/diff/1/net/disk_cache/simple/simple_synchronous_entry.cc File net/disk_cache/simple/simple_synchronous_entry.cc (right): https://codereview.chromium.org/2862943002/diff/1/net/disk_cache/simple/simple_synchronous_entry.cc#newcode879 net/disk_cache/simple/simple_synchronous_entry.cc:879: files_[file_index].Initialize(filename, flags); I worry a bit about the state ...
3 years, 7 months ago (2017-05-05 17:16:21 UTC) #7
pasko
lgtm, thank you
3 years, 7 months ago (2017-05-05 17:17:33 UTC) #8
pasko
https://codereview.chromium.org/2862943002/diff/1/net/disk_cache/simple/simple_synchronous_entry.cc File net/disk_cache/simple/simple_synchronous_entry.cc (right): https://codereview.chromium.org/2862943002/diff/1/net/disk_cache/simple/simple_synchronous_entry.cc#newcode879 net/disk_cache/simple/simple_synchronous_entry.cc:879: files_[file_index].Initialize(filename, flags); On 2017/05/05 17:16:21, jkarlin wrote: > I ...
3 years, 7 months ago (2017-05-05 17:24:15 UTC) #9
jkarlin
lgtm https://codereview.chromium.org/2862943002/diff/1/net/disk_cache/simple/simple_synchronous_entry.cc File net/disk_cache/simple/simple_synchronous_entry.cc (right): https://codereview.chromium.org/2862943002/diff/1/net/disk_cache/simple/simple_synchronous_entry.cc#newcode879 net/disk_cache/simple/simple_synchronous_entry.cc:879: files_[file_index].Initialize(filename, flags); On 2017/05/05 17:24:15, pasko wrote: > ...
3 years, 7 months ago (2017-05-05 17:42:18 UTC) #10
Maks Orlovich
> https://codereview.chromium.org/2862943002/diff/1/net/disk_cache/simple/simple_synchronous_entry.cc#newcode879 > net/disk_cache/simple/simple_synchronous_entry.cc:879: > files_[file_index].Initialize(filename, flags); > I worry a bit about the state ...
3 years, 7 months ago (2017-05-05 17:44:55 UTC) #11
jkarlin
On 2017/05/05 17:44:55, Maks Orlovich wrote: > > > https://codereview.chromium.org/2862943002/diff/1/net/disk_cache/simple/simple_synchronous_entry.cc#newcode879 > > net/disk_cache/simple/simple_synchronous_entry.cc:879: > > ...
3 years, 7 months ago (2017-05-05 19:46:26 UTC) #12
pasko
On 2017/05/05 17:44:55, Maks Orlovich wrote: > The timing of "after the user clears the ...
3 years, 7 months ago (2017-05-11 11:41:33 UTC) #14
Maks Orlovich
> fwiw, I don't see anything tricky here: we will continue working with cache > ...
3 years, 7 months ago (2017-05-11 13:09:45 UTC) #15
pasko
On 2017/05/11 13:09:45, Maks Orlovich wrote: > > fwiw, I don't see anything tricky here: ...
3 years, 7 months ago (2017-05-11 13:13:45 UTC) #16
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/2862943002/40001
3 years, 7 months ago (2017-05-15 15:12:43 UTC) #23
commit-bot: I haz the power
3 years, 7 months ago (2017-05-15 15:20:29 UTC) #26
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/2d841835e729da2bef43897070bc...

Powered by Google App Engine
This is Rietveld 408576698