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

Issue 2554723003: Always persist data to disk after 60s from the receiving update request. (Closed)

Created:
4 years ago by Zhongyi Shi
Modified:
4 years ago
Reviewers:
Ryan Hamilton, xunjieli
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change http_server_properties_manager to always persist data to disk after 60s from the receiving update request. All the update requests received during the gap will bundled to the first request. BUG=670519 Committed: https://crrev.com/3ba27dc9d493c491e6172b6537d44617a22ea81a Cr-Commit-Position: refs/heads/master@{#439395}

Patch Set 1 #

Total comments: 2

Patch Set 2 : address rch's comments and rebase after unittests has been fixed. #

Patch Set 3 : add regression test #

Total comments: 4

Patch Set 4 : Updated patchset dependency #

Patch Set 5 : rebase with upstream committed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -4 lines) Patch
M net/http/http_server_properties_manager.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M net/http/http_server_properties_manager_unittest.cc View 1 2 3 5 chunks +70 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (11 generated)
Zhongyi Shi
Hi xunjieli@ and rch@, I have verified this new patch works for cronet. Every 60s, ...
4 years ago (2016-12-06 21:52:25 UTC) #3
xunjieli
On 2016/12/06 21:52:25, Zhongyi Shi wrote: > Hi xunjieli@ and rch@, > > I have ...
4 years ago (2016-12-06 22:14:03 UTC) #5
Ryan Hamilton
I agree with xunjieli about tests :) https://codereview.chromium.org/2554723003/diff/1/net/http/http_server_properties_manager.cc File net/http/http_server_properties_manager.cc (right): https://codereview.chromium.org/2554723003/diff/1/net/http/http_server_properties_manager.cc#newcode782 net/http/http_server_properties_manager.cc:782: // Cancel ...
4 years ago (2016-12-06 22:24:15 UTC) #6
xunjieli
I took a look at file a bit more today. I'd like to propose splitting ...
4 years ago (2016-12-07 19:02:52 UTC) #7
Zhongyi Shi
I agreed that this manager is currently too complex and hides potential bugs. A refactoring ...
4 years ago (2016-12-07 19:19:07 UTC) #8
xunjieli
On 2016/12/07 19:19:07, Zhongyi Shi wrote: > I agreed that this manager is currently too ...
4 years ago (2016-12-07 19:53:18 UTC) #9
Zhongyi Shi
Update: Regression test added. I will create one follow up CL to fix persisting data ...
4 years ago (2016-12-16 00:20:01 UTC) #11
Ryan Hamilton
lgtm WOO HOO
4 years ago (2016-12-16 01:43:22 UTC) #13
commit-bot: I haz the power
This CL has an open dependency (Issue 2577863002 Patch 20001). Please resolve the dependency and ...
4 years ago (2016-12-16 01:44:13 UTC) #15
xunjieli
lgtm. One test suggestion below. https://codereview.chromium.org/2554723003/diff/60001/net/http/http_server_properties_manager_unittest.cc File net/http/http_server_properties_manager_unittest.cc (right): https://codereview.chromium.org/2554723003/diff/60001/net/http/http_server_properties_manager_unittest.cc#newcode676 net/http/http_server_properties_manager_unittest.cc:676: ExpectPrefsUpdateRepeatedly(); I know in ...
4 years ago (2016-12-16 15:48:08 UTC) #16
Zhongyi Shi
https://codereview.chromium.org/2554723003/diff/60001/net/http/http_server_properties_manager_unittest.cc File net/http/http_server_properties_manager_unittest.cc (right): https://codereview.chromium.org/2554723003/diff/60001/net/http/http_server_properties_manager_unittest.cc#newcode676 net/http/http_server_properties_manager_unittest.cc:676: ExpectPrefsUpdateRepeatedly(); On 2016/12/16 15:48:08, xunjieli wrote: > I know ...
4 years ago (2016-12-17 00:59:44 UTC) #17
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/2554723003/100001
4 years ago (2016-12-19 01:58:09 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years ago (2016-12-19 03:00:02 UTC) #23
commit-bot: I haz the power
4 years ago (2016-12-19 03:01:48 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3ba27dc9d493c491e6172b6537d44617a22ea81a
Cr-Commit-Position: refs/heads/master@{#439395}

Powered by Google App Engine
This is Rietveld 408576698