|
|
Chromium Code Reviews|
Created:
4 years, 1 month ago by Julia Tuttle Modified:
4 years, 1 month ago Reviewers:
Randy Smith (Not in Mondays) CC:
chromium-reviews Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionDomain Reliability: Expire queued beacons after 1 hour.
This isn't perfect -- it doesn't reschedule uploads when beacons expire,
and it assumes beacon start times are roughly in increasing order -- but
it should get the job done.
(The imperfections may result in it uploading the beacon *after* an
expired one slightly early, or uploading an expired beacon because it
started before but ended after an unexpired beacon that therefore ended
up *before* it in the queue.)
(A more thorough version of this would keep an explicit "queued time"
field, but I'm hoping to merge this, so I want the simplest working
solution.)
BUG=661632
Committed: https://crrev.com/619e356507bb7c8f8e39981f662117af591f6cfa
Cr-Commit-Position: refs/heads/master@{#430060}
Patch Set 1 #
Total comments: 1
Messages
Total messages: 21 (13 generated)
The CQ bit was checked by juliatuttle@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Domain Reliability: Expire queued beacons after 1 hour BUG=661632 ========== to ========== Domain Reliability: Expire queued beacons after 1 hour This isn't perfect -- it can end up uploading unexpired beacons slightly early, since it prunes the expired beacons right before starting an upload -- but it is simple and should get the job done. BUG=661632 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
Description was changed from ========== Domain Reliability: Expire queued beacons after 1 hour This isn't perfect -- it can end up uploading unexpired beacons slightly early, since it prunes the expired beacons right before starting an upload -- but it is simple and should get the job done. BUG=661632 ========== to ========== Domain Reliability: Expire queued beacons after 1 hour. This isn't perfect -- it can end up uploading unexpired beacons slightly early, since it prunes the expired beacons right before starting an upload -- but it is simple and should get the job done. BUG=661632 ==========
juliatuttle@chromium.org changed reviewers: + rdsmith@chromium.org
PTAL, rdsmith.
Description was changed from ========== Domain Reliability: Expire queued beacons after 1 hour. This isn't perfect -- it can end up uploading unexpired beacons slightly early, since it prunes the expired beacons right before starting an upload -- but it is simple and should get the job done. BUG=661632 ========== to ========== Domain Reliability: Expire queued beacons after 1 hour. This isn't perfect -- it doesn't reschedule uploads when beacons expire,and it assumes beacon start times are roughly in increasing order -- but it should get the job done. (A more thorough version of this would keep an explicit "queued time" field, but I'm hoping to merge this, so I want the simplest working solution.) BUG=661632 ==========
Description was changed from ========== Domain Reliability: Expire queued beacons after 1 hour. This isn't perfect -- it doesn't reschedule uploads when beacons expire,and it assumes beacon start times are roughly in increasing order -- but it should get the job done. (A more thorough version of this would keep an explicit "queued time" field, but I'm hoping to merge this, so I want the simplest working solution.) BUG=661632 ========== to ========== Domain Reliability: Expire queued beacons after 1 hour. This isn't perfect -- it doesn't reschedule uploads when beacons expire, and it assumes beacon start times are roughly in increasing order -- but it should get the job done. (A more thorough version of this would keep an explicit "queued time" field, but I'm hoping to merge this, so I want the simplest working solution.) BUG=661632 ==========
On 2016/11/03 20:09:09, Julia Tuttle wrote: > PTAL, rdsmith. Clarified description, as requested in person.
"it doesn't reschedule uploads when beacons expire": I'd feel a bit happier if this was followed by "resulting in the strange behavior of ...", but that's suggestion level. LGTM with request for constant below. https://codereview.chromium.org/2464163003/diff/1/components/domain_reliabili... File components/domain_reliability/context.cc (right): https://codereview.chromium.org/2464163003/diff/1/components/domain_reliabili... components/domain_reliability/context.cc:275: const base::TimeDelta kMaxAge = base::TimeDelta::FromHours(1); Defined constant somewhere?
Description was changed from ========== Domain Reliability: Expire queued beacons after 1 hour. This isn't perfect -- it doesn't reschedule uploads when beacons expire, and it assumes beacon start times are roughly in increasing order -- but it should get the job done. (A more thorough version of this would keep an explicit "queued time" field, but I'm hoping to merge this, so I want the simplest working solution.) BUG=661632 ========== to ========== Domain Reliability: Expire queued beacons after 1 hour. This isn't perfect -- it doesn't reschedule uploads when beacons expire, and it assumes beacon start times are roughly in increasing order -- but it should get the job done. (The imperfections may result in it uploading the beacon *after* an expired one slightly early, or uploading an expired beacon because it started before but ended after an unexpired beacon that therefore ended up *before* it in the queue.) (A more thorough version of this would keep an explicit "queued time" field, but I'm hoping to merge this, so I want the simplest working solution.) BUG=661632 ==========
On 2016/11/04 16:06:29, Randy Smith - Not in Mondays wrote: > "it doesn't reschedule uploads when beacons expire": I'd feel a bit happier if > this was followed by "resulting in the strange behavior of ...", but that's > suggestion level. Done. > LGTM with request for constant below. > > https://codereview.chromium.org/2464163003/diff/1/components/domain_reliabili... > File components/domain_reliability/context.cc (right): > > https://codereview.chromium.org/2464163003/diff/1/components/domain_reliabili... > components/domain_reliability/context.cc:275: const base::TimeDelta kMaxAge = > base::TimeDelta::FromHours(1); > Defined constant somewhere? Line 275 is somewhere, and that is in fact a constant. :) Do you want me to move it further up in the file?
On 2016/11/04 19:29:55, Julia Tuttle wrote: > On 2016/11/04 16:06:29, Randy Smith - Not in Mondays wrote: > > "it doesn't reschedule uploads when beacons expire": I'd feel a bit happier if > > this was followed by "resulting in the strange behavior of ...", but that's > > suggestion level. > > Done. > > > LGTM with request for constant below. > > > > > https://codereview.chromium.org/2464163003/diff/1/components/domain_reliabili... > > File components/domain_reliability/context.cc (right): > > > > > https://codereview.chromium.org/2464163003/diff/1/components/domain_reliabili... > > components/domain_reliability/context.cc:275: const base::TimeDelta kMaxAge = > > base::TimeDelta::FromHours(1); > > Defined constant somewhere? > > Line 275 is somewhere, and that is in fact a constant. :) Do you want me to move > it further up in the file? Huh. Good point. Never mind.
The CQ bit was checked by juliatuttle@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Domain Reliability: Expire queued beacons after 1 hour. This isn't perfect -- it doesn't reschedule uploads when beacons expire, and it assumes beacon start times are roughly in increasing order -- but it should get the job done. (The imperfections may result in it uploading the beacon *after* an expired one slightly early, or uploading an expired beacon because it started before but ended after an unexpired beacon that therefore ended up *before* it in the queue.) (A more thorough version of this would keep an explicit "queued time" field, but I'm hoping to merge this, so I want the simplest working solution.) BUG=661632 ========== to ========== Domain Reliability: Expire queued beacons after 1 hour. This isn't perfect -- it doesn't reschedule uploads when beacons expire, and it assumes beacon start times are roughly in increasing order -- but it should get the job done. (The imperfections may result in it uploading the beacon *after* an expired one slightly early, or uploading an expired beacon because it started before but ended after an unexpired beacon that therefore ended up *before* it in the queue.) (A more thorough version of this would keep an explicit "queued time" field, but I'm hoping to merge this, so I want the simplest working solution.) BUG=661632 ==========
Message was sent while issue was closed.
Committed patchset #1 (id:1)
Message was sent while issue was closed.
Description was changed from ========== Domain Reliability: Expire queued beacons after 1 hour. This isn't perfect -- it doesn't reschedule uploads when beacons expire, and it assumes beacon start times are roughly in increasing order -- but it should get the job done. (The imperfections may result in it uploading the beacon *after* an expired one slightly early, or uploading an expired beacon because it started before but ended after an unexpired beacon that therefore ended up *before* it in the queue.) (A more thorough version of this would keep an explicit "queued time" field, but I'm hoping to merge this, so I want the simplest working solution.) BUG=661632 ========== to ========== Domain Reliability: Expire queued beacons after 1 hour. This isn't perfect -- it doesn't reschedule uploads when beacons expire, and it assumes beacon start times are roughly in increasing order -- but it should get the job done. (The imperfections may result in it uploading the beacon *after* an expired one slightly early, or uploading an expired beacon because it started before but ended after an unexpired beacon that therefore ended up *before* it in the queue.) (A more thorough version of this would keep an explicit "queued time" field, but I'm hoping to merge this, so I want the simplest working solution.) BUG=661632 Committed: https://crrev.com/619e356507bb7c8f8e39981f662117af591f6cfa Cr-Commit-Position: refs/heads/master@{#430060} ==========
Message was sent while issue was closed.
Patchset 1 (id:??) landed as https://crrev.com/619e356507bb7c8f8e39981f662117af591f6cfa Cr-Commit-Position: refs/heads/master@{#430060} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
