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

Issue 232003005: [Sync] Add support for retrying a getupdates due to a context change (Closed)

Created:
6 years, 8 months ago by Nicolas Zea
Modified:
6 years, 8 months ago
Reviewers:
rlarocque
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

[Sync] Add support for retrying a getupdates due to a context change We detect a context conflict using the version value, and if detected force the getupdates to retry. BUG=360280 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263134

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -33 lines) Patch
M sync/engine/backoff_delay_provider.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M sync/engine/backoff_delay_provider_unittest.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M sync/engine/directory_update_handler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M sync/engine/directory_update_handler.cc View 1 2 chunks +14 lines, -8 lines 0 comments Download
M sync/engine/directory_update_handler_unittest.cc View 1 3 chunks +86 lines, -5 lines 2 comments Download
M sync/engine/get_updates_processor.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/engine/get_updates_processor.cc View 1 5 chunks +15 lines, -11 lines 0 comments Download
M sync/engine/non_blocking_type_processor_core.h View 1 1 chunk +1 line, -1 line 0 comments Download
M sync/engine/non_blocking_type_processor_core.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M sync/engine/update_handler.h View 1 2 chunks +5 lines, -1 line 0 comments Download
M sync/internal_api/public/util/syncer_error.h View 1 chunk +3 lines, -0 lines 0 comments Download
M sync/internal_api/public/util/syncer_error.cc View 1 chunk +1 line, -0 lines 0 comments Download
M sync/test/engine/mock_update_handler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M sync/test/engine/mock_update_handler.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Nicolas Zea
PTAL. This assumes that the server, if it cares about always getting the most recent ...
6 years, 8 months ago (2014-04-10 00:57:49 UTC) #1
rlarocque
This looks OK, but I would like to see some more tests. https://codereview.chromium.org/232003005/diff/1/sync/engine/get_updates_processor.cc File sync/engine/get_updates_processor.cc ...
6 years, 8 months ago (2014-04-10 01:15:29 UTC) #2
Nicolas Zea
PTAL https://codereview.chromium.org/232003005/diff/1/sync/engine/get_updates_processor.cc File sync/engine/get_updates_processor.cc (right): https://codereview.chromium.org/232003005/diff/1/sync/engine/get_updates_processor.cc#newcode338 sync/engine/get_updates_processor.cc:338: if (!update_handler_iter->second->ProcessGetUpdatesResponse( On 2014/04/10 01:15:29, rlarocque wrote: > ...
6 years, 8 months ago (2014-04-10 19:06:26 UTC) #3
rlarocque
LGTM with one more suggestion. https://codereview.chromium.org/232003005/diff/40001/sync/engine/directory_update_handler_unittest.cc File sync/engine/directory_update_handler_unittest.cc (right): https://codereview.chromium.org/232003005/diff/40001/sync/engine/directory_update_handler_unittest.cc#newcode355 sync/engine/directory_update_handler_unittest.cc:355: sync_pb::DataTypeContext new_context; Could this ...
6 years, 8 months ago (2014-04-10 20:02:35 UTC) #4
Nicolas Zea
Commiting via commitbot https://codereview.chromium.org/232003005/diff/40001/sync/engine/directory_update_handler_unittest.cc File sync/engine/directory_update_handler_unittest.cc (right): https://codereview.chromium.org/232003005/diff/40001/sync/engine/directory_update_handler_unittest.cc#newcode355 sync/engine/directory_update_handler_unittest.cc:355: sync_pb::DataTypeContext new_context; On 2014/04/10 20:02:36, rlarocque ...
6 years, 8 months ago (2014-04-10 20:44:21 UTC) #5
Nicolas Zea
The CQ bit was checked by zea@chromium.org
6 years, 8 months ago (2014-04-10 20:44:25 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/232003005/40001
6 years, 8 months ago (2014-04-10 20:44:59 UTC) #7
commit-bot: I haz the power
6 years, 8 months ago (2014-04-10 23:57:59 UTC) #8
Message was sent while issue was closed.
Change committed as 263134

Powered by Google App Engine
This is Rietveld 408576698