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

Issue 9158004: Detect sync server communication errors (Closed)

Created:
8 years, 11 months ago by rlarocque
Modified:
8 years, 11 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin, tim (not reviewing)
Visibility:
Public.

Description

Detect sync server communication errors This is part 2 of 3 in a series of patches to remove the unnecessary SYNC_CYCLE_CONTINUATION sync cycle that follows every commit. This patch adds infrastructure to report errors involving communication with the sync server back to the SyncSession and SyncScheduler. It modifies SyncerProtoUtil::PostClientToServerMessage to have it return an error code describing why it failed. This function's callers (all of which are SyncerCommands) use the infrastructure added in the first patch of this series to return the error value to SyncShare(). From there, the return values are placed into the session's StatusController object. The method SyncSession::Succeeded() method provides an easy way to determine if the anything went wrong with the current sync session, and its response is based on the stored return values. This change has no effect on the client's behaviour. Although it gives the client access to lots more information, the client does not use it for any decision making. BUG=94670 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117285

Patch Set 1 #

Total comments: 13

Patch Set 2 : Update for review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -23 lines) Patch
M chrome/browser/sync/engine/clear_data_command.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/engine/download_updates_command.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/engine/syncer.cc View 1 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/sync/engine/syncer_proto_util.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/sync/engine/syncer_proto_util.cc View 1 4 chunks +43 lines, -11 lines 0 comments Download
M chrome/browser/sync/sessions/session_state.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/sync/sessions/session_state.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/sync/sessions/status_controller.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/sessions/status_controller.cc View 1 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/sync/sessions/status_controller_unittest.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/sync/sessions/sync_session.h View 1 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/sync/sessions/sync_session.cc View 1 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
rlarocque
Part 1/3 of the issue 94670 fix was reviewed at http://codereview.chromium.org/9149017/ and recently landed as ...
8 years, 11 months ago (2012-01-10 00:55:18 UTC) #1
tim (not reviewing)
http://codereview.chromium.org/9158004/diff/1/chrome/browser/sync/engine/syncer_proto_util.cc File chrome/browser/sync/engine/syncer_proto_util.cc (right): http://codereview.chromium.org/9158004/diff/1/chrome/browser/sync/engine/syncer_proto_util.cc#newcode105 chrome/browser/sync/engine/syncer_proto_util.cc:105: nit - extra newline http://codereview.chromium.org/9158004/diff/1/chrome/browser/sync/engine/syncer_proto_util.cc#newcode353 chrome/browser/sync/engine/syncer_proto_util.cc:353: DCHECK(server_status != browser_sync::HttpResponse::NONE); ...
8 years, 11 months ago (2012-01-10 17:17:33 UTC) #2
rlarocque
Patch updated. http://codereview.chromium.org/9158004/diff/1/chrome/browser/sync/engine/syncer_proto_util.cc File chrome/browser/sync/engine/syncer_proto_util.cc (right): http://codereview.chromium.org/9158004/diff/1/chrome/browser/sync/engine/syncer_proto_util.cc#newcode105 chrome/browser/sync/engine/syncer_proto_util.cc:105: On 2012/01/10 17:17:34, timsteele wrote: > nit ...
8 years, 11 months ago (2012-01-10 20:40:55 UTC) #3
tim (not reviewing)
LGTM http://codereview.chromium.org/9158004/diff/1/chrome/browser/sync/sessions/status_controller.cc File chrome/browser/sync/sessions/status_controller.cc (right): http://codereview.chromium.org/9158004/diff/1/chrome/browser/sync/sessions/status_controller.cc#newcode215 chrome/browser/sync/sessions/status_controller.cc:215: shared_.error.mutate()->download_updates_result = result; On 2012/01/10 20:40:56, rlarocque wrote: ...
8 years, 11 months ago (2012-01-11 01:09:00 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/9158004/6001
8 years, 11 months ago (2012-01-11 19:10:20 UTC) #5
commit-bot: I haz the power
8 years, 11 months ago (2012-01-11 21:28:00 UTC) #6
Change committed as 117285

Powered by Google App Engine
This is Rietveld 408576698