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

Issue 22926031: Sparse IO: Allow failover to network in debug builds (Closed)

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

Description

Sparse IO: Allow failover to network in debug builds In case a backend does not support Sparse IO, a failover to network should happen, it does so via unsuccessful validation of headers, but debug builds have a DCHECK on this seemingly working path. Remove it. BUG=263642 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220564

Patch Set 1 #

Total comments: 2

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 11

Patch Set 7 : avoid uninitialized in ::MockDiskEntry #

Patch Set 8 : . #

Patch Set 9 : two tests #

Patch Set 10 : trying another upload, hopefully it will override the previous "old chunk mismatch" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -9 lines) Patch
M net/disk_cache/simple/simple_entry_impl.cc View 1 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_cache_transaction.cc View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M net/http/http_cache_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +76 lines, -0 lines 0 comments Download
M net/http/mock_http_cache.h View 1 2 3 4 5 6 7 8 5 chunks +7 lines, -1 line 0 comments Download
M net/http/mock_http_cache.cc View 1 2 3 4 5 6 7 8 7 chunks +15 lines, -7 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
pasko
7 years, 4 months ago (2013-08-23 17:07:16 UTC) #1
pasko
Gavin, Ricardo, please review. This is a temporary measure to fix media tests on Android, ...
7 years, 4 months ago (2013-08-23 17:08:34 UTC) #2
rvargas (doing something else)
https://codereview.chromium.org/22926031/diff/1/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/22926031/diff/1/net/http/http_cache_transaction.cc#newcode1534 net/http/http_cache_transaction.cc:1534: // header validation will fail and transition to STATE_SEND_REQUEST. ...
7 years, 4 months ago (2013-08-23 17:54:13 UTC) #3
pasko
PTAL https://codereview.chromium.org/22926031/diff/1/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/22926031/diff/1/net/http/http_cache_transaction.cc#newcode1534 net/http/http_cache_transaction.cc:1534: // header validation will fail and transition to ...
7 years, 3 months ago (2013-08-26 15:42:51 UTC) #4
gavinp
LGTM, Ricardo's suggestion really cleaned this up. I'd be happier with a unit test if ...
7 years, 3 months ago (2013-08-26 15:46:37 UTC) #5
gavinp
Wait: not lgtm. The showstopper here is that we need to #ifdef this code to ...
7 years, 3 months ago (2013-08-26 20:24:02 UTC) #6
gavinp
On 2013/08/26 20:24:02, gavinp wrote: > Wait: not lgtm. > > The showstopper here is ...
7 years, 3 months ago (2013-08-26 20:24:29 UTC) #7
rvargas (doing something else)
https://codereview.chromium.org/22926031/diff/7001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/22926031/diff/7001/net/http/http_cache_transaction.cc#newcode1535 net/http/http_cache_transaction.cc:1535: next_state_ = STATE_SEND_REQUEST; This is most likely not enough. ...
7 years, 3 months ago (2013-08-26 21:24:52 UTC) #8
pasko
PTAL https://codereview.chromium.org/22926031/diff/7001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/22926031/diff/7001/net/http/http_cache_transaction.cc#newcode1534 net/http/http_cache_transaction.cc:1534: // Send the network request if the backend ...
7 years, 3 months ago (2013-08-27 17:22:13 UTC) #9
rvargas (doing something else)
On 2013/08/27 17:22:13, pasko wrote: > PTAL > > https://codereview.chromium.org/22926031/diff/7001/net/http/http_cache_transaction.cc > File net/http/http_cache_transaction.cc (right): > ...
7 years, 3 months ago (2013-08-27 21:50:25 UTC) #10
gavinp
lgtm, to remove my earlier anti lgtm. Please get another lgtm from Ricardo on unit ...
7 years, 3 months ago (2013-08-28 17:43:28 UTC) #11
pasko
On 2013/08/27 21:50:25, rvargas wrote: > > The server does not return 206 though. But ...
7 years, 3 months ago (2013-08-28 19:05:58 UTC) #12
pasko
On 2013/08/28 19:05:58, pasko wrote: > On 2013/08/27 21:50:25, rvargas wrote: > > > The ...
7 years, 3 months ago (2013-08-28 19:23:44 UTC) #13
pasko
On 2013/08/28 19:23:44, pasko wrote: > On 2013/08/28 19:05:58, pasko wrote: > > On 2013/08/27 ...
7 years, 3 months ago (2013-08-28 19:29:04 UTC) #14
rvargas (doing something else)
On 2013/08/28 19:29:04, pasko wrote: > On 2013/08/28 19:23:44, pasko wrote: > > On 2013/08/28 ...
7 years, 3 months ago (2013-08-28 20:04:35 UTC) #15
pasko
On 2013/08/28 20:04:35, rvargas wrote: > On 2013/08/28 19:29:04, pasko wrote: > > On 2013/08/28 ...
7 years, 3 months ago (2013-08-28 20:11:52 UTC) #16
rvargas (doing something else)
On 2013/08/28 20:11:52, pasko wrote: > On 2013/08/28 20:04:35, rvargas wrote: > > On 2013/08/28 ...
7 years, 3 months ago (2013-08-28 21:35:39 UTC) #17
rvargas (doing something else)
https://codereview.chromium.org/22926031/diff/42001/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/22926031/diff/42001/net/disk_cache/simple/simple_entry_impl.cc#newcode499 net/disk_cache/simple/simple_entry_impl.cc:499: #if defined(OS_ANDROID) There should not be an ifdef here. ...
7 years, 3 months ago (2013-08-28 21:35:47 UTC) #18
gavinp
https://codereview.chromium.org/22926031/diff/42001/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/22926031/diff/42001/net/disk_cache/simple/simple_entry_impl.cc#newcode499 net/disk_cache/simple/simple_entry_impl.cc:499: #if defined(OS_ANDROID) On 2013/08/28 21:35:47, rvargas wrote: > There ...
7 years, 3 months ago (2013-08-28 21:41:25 UTC) #19
pasko
I'll take a look tomorrow on splitting the test into two. I have a proposal ...
7 years, 3 months ago (2013-08-28 21:56:28 UTC) #20
pasko
https://codereview.chromium.org/22926031/diff/42001/net/http/http_cache_unittest.cc File net/http/http_cache_unittest.cc (right): https://codereview.chromium.org/22926031/diff/42001/net/http/http_cache_unittest.cc#newcode3429 net/http/http_cache_unittest.cc:3429: RunTransactionTestWithResponse(cache.http_cache(), kRangeGET_NotReallyARange, On 2013/08/28 21:56:28, pasko wrote: > On ...
7 years, 3 months ago (2013-08-28 22:01:43 UTC) #21
rvargas (doing something else)
https://codereview.chromium.org/22926031/diff/42001/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/22926031/diff/42001/net/disk_cache/simple/simple_entry_impl.cc#newcode499 net/disk_cache/simple/simple_entry_impl.cc:499: #if defined(OS_ANDROID) On 2013/08/28 21:56:28, pasko wrote: > On ...
7 years, 3 months ago (2013-08-28 22:33:40 UTC) #22
rvargas (doing something else)
On 2013/08/28 21:56:28, pasko wrote: > I'll take a look tomorrow on splitting the test ...
7 years, 3 months ago (2013-08-28 22:36:31 UTC) #23
pasko
I wrote two tests to closely reflect Ricardo's recommendations. After a few hours debugging internals ...
7 years, 3 months ago (2013-08-29 16:43:27 UTC) #24
rvargas (doing something else)
lgtm
7 years, 3 months ago (2013-08-29 17:41:27 UTC) #25
pasko
Thankg Ricardo and Gavin for review and numerous hints on testing.
7 years, 3 months ago (2013-08-30 10:21:27 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pasko@chromium.org/22926031/90001
7 years, 3 months ago (2013-08-30 10:22:58 UTC) #27
commit-bot: I haz the power
7 years, 3 months ago (2013-08-30 12:38:40 UTC) #28
Message was sent while issue was closed.
Change committed as 220564

Powered by Google App Engine
This is Rietveld 408576698