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

Issue 1995513002: Add more BrotliFilter information to UMA. (Closed)

Created:
4 years, 7 months ago by eustas
Modified:
4 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

TL;DR: adding "gzip-header-detected" and "brotli-error-code" UMA's BrotliFilter.Status UMA's show that about 0.5% of requests finish with "In Progress" status and 0.05% with "Error" status. The same data sliced by platform: | Windows | Android | ------------+---------+---------+ In progress | 0.57% | 0.29% | Error | 0.00% | 0.15% | ------------+---------+---------+ Σ | 0.57% | 0.44% | The sum for Windows and Android looks similar. This makes me suspicious that it both results may have the same reason: actual content has invalid (non-brotli) encoding. To check this I plan to add additional UMA's: one will report if gzip header is detected, the other one will report brotli error code that will allow to understand at what point "corrupted" input is detected. BUG=613113 Committed: https://crrev.com/5a2ee1339095755400f7249f6add4e97d29717c6 Cr-Commit-Position: refs/heads/master@{#395552}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Rename constant #

Patch Set 3 : Use BROTLI_LAST_ERROR_CODE #

Patch Set 4 : More correct enum->int conversion #

Total comments: 2

Patch Set 5 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -1 line) Patch
M net/filter/brotli_filter.cc View 1 2 3 4 5 chunks +29 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 2 chunks +50 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
eustas
4 years, 7 months ago (2016-05-18 11:42:46 UTC) #2
eustas
4 years, 7 months ago (2016-05-18 11:44:47 UTC) #4
cbentzel
Looks like you are trying to identify cases where gzip is sent when we expect ...
4 years, 7 months ago (2016-05-18 16:11:25 UTC) #5
eustas
On 2016/05/18 16:11:25, cbentzel wrote: > Looks like you are trying to identify cases where ...
4 years, 7 months ago (2016-05-19 09:37:30 UTC) #7
cbentzel
https://codereview.chromium.org/1995513002/diff/1/net/filter/brotli_filter.cc File net/filter/brotli_filter.cc (right): https://codereview.chromium.org/1995513002/diff/1/net/filter/brotli_filter.cc#newcode17 net/filter/brotli_filter.cc:17: const uint8_t gzip_header[] = {0x1f, 0x8b, 0x08}; Nit: Should ...
4 years, 7 months ago (2016-05-19 11:55:33 UTC) #8
eustas
https://codereview.chromium.org/1995513002/diff/1/net/filter/brotli_filter.cc File net/filter/brotli_filter.cc (right): https://codereview.chromium.org/1995513002/diff/1/net/filter/brotli_filter.cc#newcode17 net/filter/brotli_filter.cc:17: const uint8_t gzip_header[] = {0x1f, 0x8b, 0x08}; On 2016/05/19 ...
4 years, 7 months ago (2016-05-19 13:07:54 UTC) #9
Steven Holte
https://codereview.chromium.org/1995513002/diff/1/net/filter/brotli_filter.cc File net/filter/brotli_filter.cc (right): https://codereview.chromium.org/1995513002/diff/1/net/filter/brotli_filter.cc#newcode64 net/filter/brotli_filter.cc:64: static_cast<int>(-error_code), 40); On 2016/05/19 13:07:54, eustas wrote: > On ...
4 years, 7 months ago (2016-05-19 19:10:15 UTC) #10
eustas
On 2016/05/19 19:10:15, Steven Holte wrote: > https://codereview.chromium.org/1995513002/diff/1/net/filter/brotli_filter.cc > File net/filter/brotli_filter.cc (right): > > https://codereview.chromium.org/1995513002/diff/1/net/filter/brotli_filter.cc#newcode64 ...
4 years, 7 months ago (2016-05-20 08:44:09 UTC) #11
eustas
Required brotli update (https://codereview.chromium.org/1995193003/) has landed.
4 years, 7 months ago (2016-05-20 10:03:59 UTC) #12
cbentzel
LGTM https://codereview.chromium.org/1995513002/diff/60001/net/filter/brotli_filter.cc File net/filter/brotli_filter.cc (right): https://codereview.chromium.org/1995513002/diff/60001/net/filter/brotli_filter.cc#newcode53 net/filter/brotli_filter.cc:53: static_cast<bool>(gzip_header_detected_)); Why is this static_cast needed?
4 years, 7 months ago (2016-05-21 19:42:40 UTC) #13
eustas
https://codereview.chromium.org/1995513002/diff/60001/net/filter/brotli_filter.cc File net/filter/brotli_filter.cc (right): https://codereview.chromium.org/1995513002/diff/60001/net/filter/brotli_filter.cc#newcode53 net/filter/brotli_filter.cc:53: static_cast<bool>(gzip_header_detected_)); On 2016/05/21 19:42:40, cbentzel wrote: > Why is ...
4 years, 7 months ago (2016-05-23 09:46:23 UTC) #14
eustas
Steven, please take another look. Thanks.
4 years, 7 months ago (2016-05-23 09:47:20 UTC) #15
Steven Holte
lgtm
4 years, 7 months ago (2016-05-23 20:33:37 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1995513002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1995513002/80001
4 years, 7 months ago (2016-05-24 07:54:45 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-24 09:15:36 UTC) #21
commit-bot: I haz the power
4 years, 7 months ago (2016-05-24 09:17:47 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5a2ee1339095755400f7249f6add4e97d29717c6
Cr-Commit-Position: refs/heads/master@{#395552}

Powered by Google App Engine
This is Rietveld 408576698