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

Issue 9372051: Don't retry failed attempts to poll sync server (Closed)

Created:
8 years, 10 months ago by rlarocque
Modified:
8 years, 9 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin, lipalani1
Visibility:
Public.

Description

Don't retry failed attempts to poll sync server This commit doesn't change much of our intended behaviour, though it does affect the details of how we achieve it. A failed poll used to cause us to schedule a retry job. However, because this job was considered to be a POLL job, and we don't run POLL jobs when we're in backoff, it would get rejected by the scheduler. The backoff timer never got reset after that, so this would have happened only once per poll attempt. This change makes it so we never backoff in response to a failed poll. This might have an impact in some really strange edge cases (ie. a poll recently failed then we receive an IP address change notification) but those changes should be an improvement and most common use cases will be unaffected. Users will likely never notice the effects of this change. Our tests, however, do care about these sorts of details. This commit fixes some existing tests and adds one new one. BUG=112954 TEST=SyncSchedulerTest in sync_unit_test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124034

Patch Set 1 #

Patch Set 2 : Minor comment updates #

Total comments: 4

Patch Set 3 : Rewrite if branch #

Patch Set 4 : Fix array indices #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -38 lines) Patch
M chrome/browser/sync/engine/sync_scheduler.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/engine/sync_scheduler.cc View 1 2 3 4 1 chunk +14 lines, -11 lines 0 comments Download
M chrome/browser/sync/engine/sync_scheduler_unittest.cc View 1 2 3 4 3 chunks +63 lines, -27 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
rlarocque
Tim: please review. I'm not sure that I've done a very good job of explaining ...
8 years, 10 months ago (2012-02-10 19:19:49 UTC) #1
tim (not reviewing)
http://codereview.chromium.org/9372051/diff/2001/chrome/browser/sync/engine/sync_scheduler.cc File chrome/browser/sync/engine/sync_scheduler.cc (right): http://codereview.chromium.org/9372051/diff/2001/chrome/browser/sync/engine/sync_scheduler.cc#newcode905 chrome/browser/sync/engine/sync_scheduler.cc:905: // We don't retry POLL jobs. Hm, maybe our ...
8 years, 10 months ago (2012-02-14 01:05:32 UTC) #2
rlarocque
http://codereview.chromium.org/9372051/diff/2001/chrome/browser/sync/engine/sync_scheduler.cc File chrome/browser/sync/engine/sync_scheduler.cc (right): http://codereview.chromium.org/9372051/diff/2001/chrome/browser/sync/engine/sync_scheduler.cc#newcode905 chrome/browser/sync/engine/sync_scheduler.cc:905: // We don't retry POLL jobs. On 2012/02/14 01:05:32, ...
8 years, 10 months ago (2012-02-14 01:59:36 UTC) #3
tim (not reviewing)
http://codereview.chromium.org/9372051/diff/2001/chrome/browser/sync/engine/sync_scheduler.cc File chrome/browser/sync/engine/sync_scheduler.cc (right): http://codereview.chromium.org/9372051/diff/2001/chrome/browser/sync/engine/sync_scheduler.cc#newcode905 chrome/browser/sync/engine/sync_scheduler.cc:905: // We don't retry POLL jobs. On 2012/02/14 01:59:36, ...
8 years, 10 months ago (2012-02-15 02:21:29 UTC) #4
rlarocque
I agree with the thought behind your concerns, but I think practical issues get in ...
8 years, 10 months ago (2012-02-17 20:51:01 UTC) #5
rlarocque
Patch set 3 partially addresses Tim's comments and patch set 4 fixes a serious memory ...
8 years, 10 months ago (2012-02-22 19:56:01 UTC) #6
tim (not reviewing)
On 2012/02/22 19:56:01, rlarocque wrote: > Patch set 3 partially addresses Tim's comments and patch ...
8 years, 9 months ago (2012-02-28 07:24:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/9372051/19001
8 years, 9 months ago (2012-02-28 17:57:52 UTC) #8
commit-bot: I haz the power
8 years, 9 months ago (2012-02-28 21:50:36 UTC) #9
Change committed as 124034

Powered by Google App Engine
This is Rietveld 408576698