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

Issue 62423002: Fix one case that can make sync backend stuck in auth error state. (Closed)

Created:
7 years, 1 month ago by haitaol1
Modified:
7 years, 1 month ago
CC:
chromium-reviews, tim+watch_chromium.org, cbentzel+watch_chromium.org, rsimha+watch_chromium.org, haitaol+watch_chromium.org
Visibility:
Public.

Description

Fix one case that can make sync backend stuck in auth error state. In case like server outage/bug, sync backend can receive same invalid token in a row and stay in auth error state without frontend knowing it. This change makes backend report auth error again if this happens. Frontend will request token again but also use exponetial backoff to protect againest hammering token server too often. BUG=311420 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233938

Patch Set 1 #

Patch Set 2 : #

Total comments: 13

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -5 lines) Patch
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 2 chunks +44 lines, -4 lines 0 comments Download
M sync/engine/net/server_connection_manager.cc View 1 2 3 4 5 2 chunks +13 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
haitaol1
7 years, 1 month ago (2013-11-06 18:03:15 UTC) #1
tim (not reviewing)
https://codereview.chromium.org/62423002/diff/20001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/62423002/diff/20001/chrome/browser/sync/profile_sync_service.cc#newcode1113 chrome/browser/sync/profile_sync_service.cc:1113: // invalid, there may be some issues with token ...
7 years, 1 month ago (2013-11-06 19:35:32 UTC) #2
haitaol1
https://codereview.chromium.org/62423002/diff/20001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/62423002/diff/20001/chrome/browser/sync/profile_sync_service.cc#newcode1113 chrome/browser/sync/profile_sync_service.cc:1113: // invalid, there may be some issues with token ...
7 years, 1 month ago (2013-11-06 22:37:30 UTC) #3
haitaol1
https://codereview.chromium.org/62423002/diff/20001/sync/engine/net/server_connection_manager.cc File sync/engine/net/server_connection_manager.cc (right): https://codereview.chromium.org/62423002/diff/20001/sync/engine/net/server_connection_manager.cc#newcode264 sync/engine/net/server_connection_manager.cc:264: server_status_ == server_status) { Another option is to leverage ...
7 years, 1 month ago (2013-11-07 15:23:52 UTC) #4
pavely
On 2013/11/07 15:23:52, haitaol1 wrote: > https://codereview.chromium.org/62423002/diff/20001/sync/engine/net/server_connection_manager.cc > File sync/engine/net/server_connection_manager.cc (right): > > https://codereview.chromium.org/62423002/diff/20001/sync/engine/net/server_connection_manager.cc#newcode264 > ...
7 years, 1 month ago (2013-11-07 16:33:43 UTC) #5
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 1 month ago (2013-11-07 21:42:33 UTC) #6
tim (not reviewing)
LGTM with nits. When you rebase over Raghu's recent CL you'll see a new IsRetryingAccessTokenFetchForTest() ...
7 years, 1 month ago (2013-11-07 22:07:13 UTC) #7
haitaol1
https://codereview.chromium.org/62423002/diff/20001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/62423002/diff/20001/chrome/browser/sync/profile_sync_service.cc#newcode1113 chrome/browser/sync/profile_sync_service.cc:1113: // invalid, there may be some issues with token ...
7 years, 1 month ago (2013-11-08 15:23:02 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haitaol@chromium.org/62423002/240001
7 years, 1 month ago (2013-11-08 15:38:12 UTC) #9
commit-bot: I haz the power
7 years, 1 month ago (2013-11-08 18:08:00 UTC) #10
Message was sent while issue was closed.
Change committed as 233938

Powered by Google App Engine
This is Rietveld 408576698