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

Issue 2134763002: sandwich: Fixes a bug when served from cache request are before. (Closed)

Created:
4 years, 5 months ago by gabadie
Modified:
4 years, 5 months ago
Reviewers:
pasko
CC:
chromium-reviews, mikecase+watch_chromium.org, gabadie+watch_chromium.org, jbudorick+watch_chromium.org, lizeb+watch-android-loading_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

sandwich: Fixes a bug when served from cache request are before. Before, prefetch experiment's CSV collection was maintaining a dict of transfered bytes per URLs as it was iterating over all resource requests and served from memory cache URLs request would just grabe the size from this dictionary. But we may have requests served from memory cache before original request that filled the memory cache, leading to a KeyError. This CL fixes this issue by first building the dictionary by going over resources requests, and then actually sum the bytes using this dictionary, avoiding the KeyError. BUG=582080 Committed: https://crrev.com/866025e8432bd4a23c221189be36696113e87c32 Cr-Commit-Position: refs/heads/master@{#404626}

Patch Set 1 #

Patch Set 2 : Rebase for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -7 lines) Patch
M tools/android/loading/sandwich_prefetch.py View 1 2 chunks +19 lines, -7 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
gabadie
4 years, 5 months ago (2016-07-08 15:14:43 UTC) #2
pasko
lgtm, thank you for detailed explanation!
4 years, 5 months ago (2016-07-08 15:17:45 UTC) #3
gabadie
On 2016/07/08 15:17:45, pasko wrote: > lgtm, thank you for detailed explanation! Thanks! Landing once ...
4 years, 5 months ago (2016-07-08 15:26:03 UTC) #5
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/2134763002/1
4 years, 5 months ago (2016-07-08 17:20:14 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/32854) ios-device-gn on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 5 months ago (2016-07-08 17:23:01 UTC) #9
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/2134763002/20001
4 years, 5 months ago (2016-07-11 09:17:30 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-11 09:50:33 UTC) #14
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-11 09:50:40 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-07-11 09:52:16 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/866025e8432bd4a23c221189be36696113e87c32
Cr-Commit-Position: refs/heads/master@{#404626}

Powered by Google App Engine
This is Rietveld 408576698