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

Issue 2470923003: Handle timeout for update requests. (Closed)

Created:
4 years, 1 month ago by vakh (use Gerrit instead)
Modified:
4 years, 1 month ago
CC:
chromium-reviews, vakh+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle timeout for update requests. 1. Starts 30 second timer when the request to fetch updates is sent. 2. If a response is received within that time, the timer is reset. 3. Otherwise, the outstanding request is cancelled and another scheduled after the same duration as the one cancelled. BUG=543161 Committed: https://crrev.com/1074a4f1111494a115606cecf8363abd63e9bb49 Cr-Commit-Position: refs/heads/master@{#431475}

Patch Set 1 #

Total comments: 8

Patch Set 2 : On timeout, schedule an update request after next_update_interval_ #

Patch Set 3 : Added a histogram for counting update timeouts #

Total comments: 8

Patch Set 4 : nparker@ review #

Patch Set 5 : rebase #

Patch Set 6 : Add UMA for the case when the update request does not time out #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -10 lines) Patch
M components/safe_browsing_db/v4_update_protocol_manager.h View 1 2 3 5 6 3 chunks +10 lines, -0 lines 0 comments Download
M components/safe_browsing_db/v4_update_protocol_manager.cc View 1 2 3 4 5 6 4 chunks +17 lines, -2 lines 0 comments Download
M components/safe_browsing_db/v4_update_protocol_manager_unittest.cc View 1 2 3 4 5 6 6 chunks +42 lines, -8 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 64 (36 generated)
vakh (use Gerrit instead)
4 years, 1 month ago (2016-11-02 19:58:09 UTC) #7
Nathan Parker
https://codereview.chromium.org/2470923003/diff/1/components/safe_browsing_db/v4_update_protocol_manager.cc File components/safe_browsing_db/v4_update_protocol_manager.cc (right): https://codereview.chromium.org/2470923003/diff/1/components/safe_browsing_db/v4_update_protocol_manager.cc#newcode308 components/safe_browsing_db/v4_update_protocol_manager.cc:308: request_.reset(); This should log some UMA value to indicate ...
4 years, 1 month ago (2016-11-02 21:56:57 UTC) #8
Scott Hess - ex-Googler
https://codereview.chromium.org/2470923003/diff/1/components/safe_browsing_db/v4_update_protocol_manager.cc File components/safe_browsing_db/v4_update_protocol_manager.cc (right): https://codereview.chromium.org/2470923003/diff/1/components/safe_browsing_db/v4_update_protocol_manager.cc#newcode309 components/safe_browsing_db/v4_update_protocol_manager.cc:309: IssueUpdateRequest(); On 2016/11/02 21:56:57, Nathan Parker wrote: > This ...
4 years, 1 month ago (2016-11-02 22:05:08 UTC) #9
vakh (use Gerrit instead)
https://codereview.chromium.org/2470923003/diff/1/components/safe_browsing_db/v4_update_protocol_manager.cc File components/safe_browsing_db/v4_update_protocol_manager.cc (right): https://codereview.chromium.org/2470923003/diff/1/components/safe_browsing_db/v4_update_protocol_manager.cc#newcode308 components/safe_browsing_db/v4_update_protocol_manager.cc:308: request_.reset(); On 2016/11/02 21:56:57, Nathan Parker wrote: > This ...
4 years, 1 month ago (2016-11-02 22:37:23 UTC) #10
Nathan Parker
https://codereview.chromium.org/2470923003/diff/1/components/safe_browsing_db/v4_update_protocol_manager.cc File components/safe_browsing_db/v4_update_protocol_manager.cc (right): https://codereview.chromium.org/2470923003/diff/1/components/safe_browsing_db/v4_update_protocol_manager.cc#newcode308 components/safe_browsing_db/v4_update_protocol_manager.cc:308: request_.reset(); On 2016/11/02 22:37:22, vakh (Varun Khaneja) wrote: > ...
4 years, 1 month ago (2016-11-05 00:32:21 UTC) #11
vakh (use Gerrit instead)
On timeout, schedule an update request after next_update_interval_
4 years, 1 month ago (2016-11-08 17:45:18 UTC) #14
vakh (use Gerrit instead)
Changed the behavior on update timeout to schedule a regular update using the existing value ...
4 years, 1 month ago (2016-11-08 17:51:40 UTC) #17
vakh (use Gerrit instead)
Added a histogram for counting update timeouts
4 years, 1 month ago (2016-11-08 18:04:22 UTC) #20
vakh (use Gerrit instead)
On 2016/11/05 00:32:21, Nathan Parker wrote: > https://codereview.chromium.org/2470923003/diff/1/components/safe_browsing_db/v4_update_protocol_manager.cc > File components/safe_browsing_db/v4_update_protocol_manager.cc (right): > > https://codereview.chromium.org/2470923003/diff/1/components/safe_browsing_db/v4_update_protocol_manager.cc#newcode308 ...
4 years, 1 month ago (2016-11-08 18:05:42 UTC) #23
Nathan Parker
lgtm https://codereview.chromium.org/2470923003/diff/40001/components/safe_browsing_db/v4_update_protocol_manager.cc File components/safe_browsing_db/v4_update_protocol_manager.cc (right): https://codereview.chromium.org/2470923003/diff/40001/components/safe_browsing_db/v4_update_protocol_manager.cc#newcode306 components/safe_browsing_db/v4_update_protocol_manager.cc:306: UMA_HISTOGRAM_COUNTS_100("SafeBrowsing.V4Update.Timeout.Count", 1); Or UMA_HISTOGRAM_BOOLEAN("..", true) either way https://codereview.chromium.org/2470923003/diff/40001/components/safe_browsing_db/v4_update_protocol_manager.h ...
4 years, 1 month ago (2016-11-08 23:39:29 UTC) #26
vakh (use Gerrit instead)
nparker@ review
4 years, 1 month ago (2016-11-09 00:08:19 UTC) #28
vakh (use Gerrit instead)
rkaplow@ -- Can you please review the one new histogram? Thanks. https://codereview.chromium.org/2470923003/diff/40001/components/safe_browsing_db/v4_update_protocol_manager.cc File components/safe_browsing_db/v4_update_protocol_manager.cc (right): ...
4 years, 1 month ago (2016-11-09 00:08:51 UTC) #32
Scott Hess - ex-Googler
LGTM. Dangling philosophical question, though. If we're just going to retry on next retry, does ...
4 years, 1 month ago (2016-11-09 01:02:25 UTC) #35
rkaplow
lgtm looks ok, but unusual there's no other case checked. Should this also have a ...
4 years, 1 month ago (2016-11-09 19:12:18 UTC) #36
vakh (use Gerrit instead)
rebase
4 years, 1 month ago (2016-11-10 22:06:07 UTC) #37
vakh (use Gerrit instead)
On 2016/11/09 19:12:18, rkaplow wrote: > lgtm > > looks ok, but unusual there's no ...
4 years, 1 month ago (2016-11-10 22:08:20 UTC) #40
vakh (use Gerrit instead)
Add UMA for the case when the update request does not time out
4 years, 1 month ago (2016-11-10 22:08:28 UTC) #41
vakh (use Gerrit instead)
On 2016/11/09 01:02:25, Scott Hess wrote: > LGTM. > > Dangling philosophical question, though. If ...
4 years, 1 month ago (2016-11-10 22:10:11 UTC) #44
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/2470923003/100001
4 years, 1 month ago (2016-11-10 22:11:33 UTC) #47
Scott Hess - ex-Googler
On 2016/11/10 22:10:11, vakh (Varun Khaneja) wrote: > On 2016/11/09 01:02:25, Scott Hess wrote: > ...
4 years, 1 month ago (2016-11-10 22:18:36 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/162228) linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 1 month ago (2016-11-10 22:27:13 UTC) #50
vakh (use Gerrit instead)
On 2016/11/10 22:18:36, Scott Hess wrote: > On 2016/11/10 22:10:11, vakh (Varun Khaneja) wrote: > ...
4 years, 1 month ago (2016-11-11 01:52:03 UTC) #51
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/2470923003/100001
4 years, 1 month ago (2016-11-11 01:52:40 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/301999) linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 1 month ago (2016-11-11 01:56:16 UTC) #55
vakh (use Gerrit instead)
rebase
4 years, 1 month ago (2016-11-11 02:04:01 UTC) #56
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/2470923003/120001
4 years, 1 month ago (2016-11-11 02:04:30 UTC) #60
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-11 03:03:31 UTC) #62
commit-bot: I haz the power
4 years, 1 month ago (2016-11-11 03:09:09 UTC) #64
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/1074a4f1111494a115606cecf8363abd63e9bb49
Cr-Commit-Position: refs/heads/master@{#431475}

Powered by Google App Engine
This is Rietveld 408576698