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

Issue 2361883002: [Offline Pages] Adds classification of some prerender FinalStatus codes as canceled operations or a… (Closed)

Created:
4 years, 3 months ago by dougarnett
Modified:
4 years, 2 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, dewittj+watch_chromium.org, tburkard+watch_chromium.org, fgorski+watch_chromium.org, romax+watch_chromium.org, petewil+watch_chromium.org, gavinp+prer_chromium.org, asvitkine+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline Pages] Adds classification of some prerender FinalStatus codes as canceled operations or as hard failures. Initial set of codes are based on what I have experienced in manual evaluations and what I am seeing in FinalStatus UMA for our Origin so far. We will want to make decisions about more status codes in the future. Identifying the hard failures as NO_RETRY cases is preparation for turning on a single retry for other failures but does have an immediate benefit of trying to pick the next request to process for hard failures rather than bail out of service window. Another immediate benefit/effect is that I am seeing many FINAL_STATUS_CANCELLED occurences in UMA, these would not be retried in the current code base but they will be with this change applied. BUG=649386 Committed: https://crrev.com/af0bd147487db4d88f06bb7a7f2e20e2286f3df1 Cr-Commit-Position: refs/heads/master@{#423256}

Patch Set 1 #

Patch Set 2 : Fixed a comment #

Total comments: 18

Patch Set 3 : Reworked per feedback #

Total comments: 1

Patch Set 4 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -34 lines) Patch
M chrome/browser/android/offline_pages/prerendering_loader.cc View 1 2 3 chunks +42 lines, -15 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_loader_unittest.cc View 1 2 5 chunks +55 lines, -9 lines 0 comments Download
M components/offline_pages/background/offliner.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M components/offline_pages/background/request_coordinator_event_logger.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M components/offline_pages/background/request_coordinator_unittest.cc View 1 2 3 6 chunks +51 lines, -5 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 30 (15 generated)
dougarnett
Cathy, would be interested in your review here but more specifically want to expose to ...
4 years, 3 months ago (2016-09-22 17:41:56 UTC) #4
chili
Thanks for keeping me in loop! :) https://codereview.chromium.org/2361883002/diff/20001/chrome/browser/android/offline_pages/prerendering_loader.cc File chrome/browser/android/offline_pages/prerendering_loader.cc (right): https://codereview.chromium.org/2361883002/diff/20001/chrome/browser/android/offline_pages/prerendering_loader.cc#newcode22 chrome/browser/android/offline_pages/prerendering_loader.cc:22: bool IsCanceledOperation(prerender::FinalStatus ...
4 years, 3 months ago (2016-09-23 00:44:18 UTC) #5
dougarnett
https://codereview.chromium.org/2361883002/diff/20001/chrome/browser/android/offline_pages/prerendering_loader.cc File chrome/browser/android/offline_pages/prerendering_loader.cc (right): https://codereview.chromium.org/2361883002/diff/20001/chrome/browser/android/offline_pages/prerendering_loader.cc#newcode22 chrome/browser/android/offline_pages/prerendering_loader.cc:22: bool IsCanceledOperation(prerender::FinalStatus final_status) { On 2016/09/23 00:44:17, chili wrote: ...
4 years, 3 months ago (2016-09-23 18:20:01 UTC) #6
Dmitry Titov
For some reason, I had difficulty reading this through... Perhaps too overloaded terminology? (canceled/failed mean ...
4 years, 3 months ago (2016-09-24 00:53:30 UTC) #7
Pete Williamson
https://codereview.chromium.org/2361883002/diff/20001/chrome/browser/android/offline_pages/prerendering_loader.cc File chrome/browser/android/offline_pages/prerendering_loader.cc (right): https://codereview.chromium.org/2361883002/diff/20001/chrome/browser/android/offline_pages/prerendering_loader.cc#newcode20 chrome/browser/android/offline_pages/prerendering_loader.cc:20: // Classifies whether final status represent a canceled operation ...
4 years, 2 months ago (2016-09-27 19:25:08 UTC) #8
dougarnett
PTAL - reworked into a single switch in new ClassifyFinalStatus() https://codereview.chromium.org/2361883002/diff/20001/chrome/browser/android/offline_pages/prerendering_loader.cc File chrome/browser/android/offline_pages/prerendering_loader.cc (right): https://codereview.chromium.org/2361883002/diff/20001/chrome/browser/android/offline_pages/prerendering_loader.cc#newcode20 ...
4 years, 2 months ago (2016-09-29 01:11:24 UTC) #11
Pete Williamson
lgtm
4 years, 2 months ago (2016-09-29 18:03:46 UTC) #14
dougarnett
Steven, can you review histograms.xml? https://codereview.chromium.org/2361883002/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2361883002/diff/40001/tools/metrics/histograms/histograms.xml#newcode90773 tools/metrics/histograms/histograms.xml:90773: + <int value="9" label="Prerendering ...
4 years, 2 months ago (2016-09-29 18:55:38 UTC) #16
Steven Holte
histograms lgtm, w/ either 9 or 10
4 years, 2 months ago (2016-09-29 20:13:27 UTC) #17
dougarnett
fyi, merged now so this CL's enum item update to 10
4 years, 2 months ago (2016-09-29 22:27:56 UTC) #22
dougarnett
On 2016/09/29 22:27:56, dougarnett wrote: > fyi, merged now so this CL's enum item update ...
4 years, 2 months ago (2016-10-03 16:43:19 UTC) #23
Dmitry Titov
lgtm
4 years, 2 months ago (2016-10-05 17:44:56 UTC) #24
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/2361883002/60001
4 years, 2 months ago (2016-10-05 17:55:54 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-05 19:46:32 UTC) #28
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 19:48:18 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/af0bd147487db4d88f06bb7a7f2e20e2286f3df1
Cr-Commit-Position: refs/heads/master@{#423256}

Powered by Google App Engine
This is Rietveld 408576698