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

Issue 23591048: Fix Simple Cache race on multiple dooms in flight. (Closed)

Created:
7 years, 3 months ago by gavinp
Modified:
7 years, 3 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

Fix Simple Cache race on multiple dooms on flight. Previously we didn't register dooms in the backend until after asynchronous operations on the entry; this meant that multiple registrations were possible if different entries were being doomed, and null dereferences abounded after doom operations. Now fixed. This reenables DiskCacheBackendTest.SimpleCacheDoomAll. R=pasko,clamy,ttuttle BUG=290866, 237450, 289542 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223376

Patch Set 1 #

Total comments: 1

Patch Set 2 : move OnDoomStart #

Patch Set 3 : add a unit test #

Total comments: 5

Patch Set 4 : remedaite #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -6 lines) Patch
M net/disk_cache/backend_unittest.cc View 1 2 3 1 chunk +1 line, -4 lines 0 comments Download
M net/disk_cache/entry_unittest.cc View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_entry_impl.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
gavinp
pasko: PTAL. clamy, ttuttle: FYI.
7 years, 3 months ago (2013-09-16 12:38:12 UTC) #1
gavinp
https://codereview.chromium.org/23591048/diff/1/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/23591048/diff/1/net/disk_cache/simple/simple_entry_impl.cc#newcode568 net/disk_cache/simple/simple_entry_impl.cc:568: backend_->OnDoomStart(entry_hash_); This is a bug. We should only do ...
7 years, 3 months ago (2013-09-16 12:40:12 UTC) #2
gavinp
I cleaned up the description, and added a new unit test specifically for this. Egor, ...
7 years, 3 months ago (2013-09-16 12:50:51 UTC) #3
pasko
Gavin, great detective work! Thanks! LGTM https://codereview.chromium.org/23591048/diff/20001/net/disk_cache/backend_unittest.cc File net/disk_cache/backend_unittest.cc (right): https://codereview.chromium.org/23591048/diff/20001/net/disk_cache/backend_unittest.cc#newcode3215 net/disk_cache/backend_unittest.cc:3215: // https://codereview.chromium.org/23823002/ lands. ...
7 years, 3 months ago (2013-09-16 14:01:42 UTC) #4
gavinp
Thanks. I'm going to CQ this fairly soon, on account of it being a big ...
7 years, 3 months ago (2013-09-16 14:14:41 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/23591048/29001
7 years, 3 months ago (2013-09-16 14:14:57 UTC) #6
pasko
On 2013/09/16 14:14:41, gavinp wrote: > Thanks. I'm going to CQ this fairly soon, on ...
7 years, 3 months ago (2013-09-16 14:28:54 UTC) #7
gavinp
On 2013/09/16 14:28:54, pasko wrote: > On 2013/09/16 14:14:41, gavinp wrote: > > Thanks. I'm ...
7 years, 3 months ago (2013-09-16 15:20:32 UTC) #8
Deprecated (see juliatuttle)
(lgtm)
7 years, 3 months ago (2013-09-16 16:41:42 UTC) #9
pasko
On 2013/09/16 16:41:42, ttuttle wrote: > (lgtm) is this a hidden L G T M?
7 years, 3 months ago (2013-09-16 16:46:00 UTC) #10
Deprecated (see juliatuttle)
On 2013/09/16 16:46:00, pasko wrote: > On 2013/09/16 16:41:42, ttuttle wrote: > > (lgtm) > ...
7 years, 3 months ago (2013-09-16 17:40:49 UTC) #11
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
7 years, 3 months ago (2013-09-16 18:18:24 UTC) #12
Deprecated (see juliatuttle)
On 2013/09/16 18:18:24, I haz the power (commit-bot) wrote: > Commit queue rejected this change ...
7 years, 3 months ago (2013-09-16 19:06:07 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/23591048/29001
7 years, 3 months ago (2013-09-16 19:06:10 UTC) #14
gavinp
On 2013/09/16 19:06:07, ttuttle wrote: > On 2013/09/16 18:18:24, I haz the power (commit-bot) wrote: ...
7 years, 3 months ago (2013-09-16 19:10:08 UTC) #15
commit-bot: I haz the power
7 years, 3 months ago (2013-09-16 19:12:50 UTC) #16
Message was sent while issue was closed.
Change committed as 223376

Powered by Google App Engine
This is Rietveld 408576698