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

Issue 275015: For sync exponential backoff, allow one nudge per exponential backoff interva... (Closed)

Created:
11 years, 2 months ago by tim (not reviewing)
Modified:
9 years, 6 months ago
Reviewers:
brg
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org, ncarter (slow), Paweł Hajdan Jr., idana
Visibility:
Public.

Description

For sync exponential backoff, allow one nudge per exponential backoff interval. If the nudge still leaves the syncer with more work to do, don't accept any further nudges for this interval, and keep the exponent stage for exponential backoff the same. As a result of the patch, the unittest can now explicitly determine if exponential backoff kicked in or not. We really need to wire this up directly to the error codes to be precise, because the current impl (and it's the same with my patch) appears to trigger exponential backoff in other cases (ShouldSyncAgain). TEST=SyncerThreadTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29053

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 17

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+347 lines, -151 lines) Patch
M chrome/browser/sync/engine/syncer_thread.h View 1 2 3 5 chunks +48 lines, -18 lines 0 comments Download
M chrome/browser/sync/engine/syncer_thread.cc View 1 2 3 8 chunks +49 lines, -23 lines 0 comments Download
M chrome/browser/sync/engine/syncer_thread_unittest.cc View 1 2 3 7 chunks +250 lines, -110 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
tim (not reviewing)
11 years, 2 months ago (2009-10-14 06:05:21 UTC) #1
brg
http://codereview.chromium.org/275015/diff/3001/4002 File chrome/browser/sync/engine/syncer_thread.cc (right): http://codereview.chromium.org/275015/diff/3001/4002#newcode139 Line 139: } May as well lock. This read is ...
11 years, 2 months ago (2009-10-14 18:05:29 UTC) #2
tim (not reviewing)
http://codereview.chromium.org/275015/diff/3001/4002 File chrome/browser/sync/engine/syncer_thread.cc (right): http://codereview.chromium.org/275015/diff/3001/4002#newcode139 Line 139: } On 2009/10/14 18:05:29, brg wrote: > May ...
11 years, 2 months ago (2009-10-14 18:41:00 UTC) #3
tim (not reviewing)
http://codereview.chromium.org/275015/diff/3001/4003 File chrome/browser/sync/engine/syncer_thread.h (right): http://codereview.chromium.org/275015/diff/3001/4003#newcode90 Line 90: EXPONENTIAL_BACKOFF, On 2009/10/14 18:41:00, timsteele wrote: > On ...
11 years, 2 months ago (2009-10-14 19:59:13 UTC) #4
brg
LGTM The two comments are things that should be considered, but do not block the ...
11 years, 2 months ago (2009-10-14 21:44:50 UTC) #5
tim (not reviewing)
http://codereview.chromium.org/275015/diff/2002/1005 File chrome/browser/sync/engine/syncer_thread.cc (right): http://codereview.chromium.org/275015/diff/2002/1005#newcode138 Line 138: return false; On 2009/10/14 21:44:50, brg wrote: > ...
11 years, 2 months ago (2009-10-14 22:42:23 UTC) #6
tim (not reviewing)
11 years, 2 months ago (2009-10-14 22:44:59 UTC) #7
Oh, and I did another pass on the locking, and overrode instructions in the
debugger to trigger certain code paths.

Will commit shortly!

Powered by Google App Engine
This is Rietveld 408576698