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

Issue 2828423002: [Sync] Sync types never recovers from throttle (Closed)

Created:
3 years, 8 months ago by Gang Wu
Modified:
3 years, 7 months ago
Reviewers:
skym
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Sync types never recovers from throttle Should check if SyncSchedulerImpl::OnTypesUnblocked need to be scheduled. BUG=710644 blocked jobs are SyncSchedulerImpl::Unthrottle SyncSchedulerImpl::ExponentialBackoffRetry SyncSchedulerImpl::OnTypesUnblocked |pending_wakeup_timer_| is used to schedule blocked type jobs and |PerformDelayedNudge|, and if OnTypesUnblocked is scheduled, but |PerformDelayedNudge| or other blocked jobs got scheduled before OnTypesUnblocked, OnTypesUnblocked will be replaced, and never been scheduled again. so we should check if there are any type is blocked after each of those jobs' run. Review-Url: https://codereview.chromium.org/2828423002 Cr-Commit-Position: refs/heads/master@{#468522} Committed: https://chromium.googlesource.com/chromium/src/+/1d37839e54566033090fbb82f89dd1dba04c3621

Patch Set 1 : unittests #

Patch Set 2 : fix #

Total comments: 20

Patch Set 3 : update for review #

Total comments: 4

Patch Set 4 : rebase and review #

Total comments: 4

Patch Set 5 : update comments #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -21 lines) Patch
M components/sync/engine_impl/sync_scheduler_impl.h View 1 2 3 4 3 chunks +11 lines, -0 lines 0 comments Download
M components/sync/engine_impl/sync_scheduler_impl.cc View 1 2 3 4 5 24 chunks +59 lines, -21 lines 0 comments Download
M components/sync/engine_impl/sync_scheduler_impl_unittest.cc View 1 2 3 4 5 5 chunks +139 lines, -0 lines 0 comments Download

Messages

Total messages: 64 (53 generated)
Gang Wu
PTAL
3 years, 8 months ago (2017-04-20 21:56:19 UTC) #24
skym
I believe you that your changes fix the bug. But, this class already seems confusing ...
3 years, 8 months ago (2017-04-21 16:06:35 UTC) #28
Gang Wu
updated. https://codereview.chromium.org/2828423002/diff/120001/components/sync/engine_impl/sync_scheduler_impl.cc File components/sync/engine_impl/sync_scheduler_impl.cc (right): https://codereview.chromium.org/2828423002/diff/120001/components/sync/engine_impl/sync_scheduler_impl.cc#newcode624 components/sync/engine_impl/sync_scheduler_impl.cc:624: // Global throttling or backoff On 2017/04/21 16:06:34, ...
3 years, 8 months ago (2017-04-25 00:52:06 UTC) #32
skym
Sorry this took me so long to review. https://codereview.chromium.org/2828423002/diff/120001/components/sync/engine_impl/sync_scheduler_impl.cc File components/sync/engine_impl/sync_scheduler_impl.cc (right): https://codereview.chromium.org/2828423002/diff/120001/components/sync/engine_impl/sync_scheduler_impl.cc#newcode764 components/sync/engine_impl/sync_scheduler_impl.cc:764: nudge_tracker_.UpdateTypeThrottlingAndBackoffState(); ...
3 years, 8 months ago (2017-04-25 23:16:17 UTC) #35
Gang Wu
updated, PTAL https://codereview.chromium.org/2828423002/diff/120001/components/sync/engine_impl/sync_scheduler_impl.cc File components/sync/engine_impl/sync_scheduler_impl.cc (right): https://codereview.chromium.org/2828423002/diff/120001/components/sync/engine_impl/sync_scheduler_impl.cc#newcode764 components/sync/engine_impl/sync_scheduler_impl.cc:764: nudge_tracker_.UpdateTypeThrottlingAndBackoffState(); On 2017/04/25 23:16:17, skym wrote: > ...
3 years, 7 months ago (2017-04-29 15:06:20 UTC) #47
skym
lgtm https://codereview.chromium.org/2828423002/diff/120001/components/sync/engine_impl/sync_scheduler_impl.cc File components/sync/engine_impl/sync_scheduler_impl.cc (right): https://codereview.chromium.org/2828423002/diff/120001/components/sync/engine_impl/sync_scheduler_impl.cc#newcode764 components/sync/engine_impl/sync_scheduler_impl.cc:764: nudge_tracker_.UpdateTypeThrottlingAndBackoffState(); No, I'm saying that the code checks ...
3 years, 7 months ago (2017-05-01 17:59:14 UTC) #48
Gang Wu
https://codereview.chromium.org/2828423002/diff/120001/components/sync/engine_impl/sync_scheduler_impl.cc File components/sync/engine_impl/sync_scheduler_impl.cc (right): https://codereview.chromium.org/2828423002/diff/120001/components/sync/engine_impl/sync_scheduler_impl.cc#newcode764 components/sync/engine_impl/sync_scheduler_impl.cc:764: nudge_tracker_.UpdateTypeThrottlingAndBackoffState(); On 2017/05/01 17:59:14, skym wrote: > No, I'm ...
3 years, 7 months ago (2017-05-01 23:01:41 UTC) #53
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/2828423002/220001
3 years, 7 months ago (2017-05-01 23:57:45 UTC) #56
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/424866)
3 years, 7 months ago (2017-05-02 00:06:53 UTC) #58
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/2828423002/240001
3 years, 7 months ago (2017-05-02 00:12:53 UTC) #61
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 01:13:58 UTC) #64
Message was sent while issue was closed.
Committed patchset #6 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/1d37839e54566033090fbb82f89d...

Powered by Google App Engine
This is Rietveld 408576698