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

Issue 2704403002: Avoid re-starting a ExternalCCResultFetcher if a previous has finished or timed out. (Closed)

Created:
3 years, 10 months ago by msarda
Modified:
3 years, 9 months ago
CC:
chromium-reviews, marq+watch_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid re-starting a ExternalCCResultFetcher if a previous has finished or timed out. When testing on Gaia prod sandbox, checking the GAIA connection fails (URL "https://accounts.sandbox.google.com/GetCheckConnectionInfo?source=ChromiumBrowser"), fails "Error 404 (Not Found)!!1". In this case, the ExternalCcResultFetcher timer fires and then the user token is fetched. The retry logic however colides with the 5 seconds timer and leads to a DCHECK being fired. After a lot of investigation, it looks like fetching the ExternalCCResult is a convenience and failing this fetch does not actually affect merging the accounts to the Gaia cookies. On top of that, UMA data shows that the failures for this fetch are due to the timer of 5 seconds firing (see https://uma.googleplex.com/histograms/?endDate=20170301&dayCount=7&histograms=Signin.Reconciler.AllExternalCcResultCompleted%2CSignin.Reconciler.ExternalCcResultTime.NotCompleted&fixupData=true&showMax=true&filters=channel%2Ceq%2C4%2Cisofficial%2Ceq%2CTrue&implicitFilters=isofficial ) This CL removed the retry logic for fetching ExternalCCResult. BUG=680622 Review-Url: https://codereview.chromium.org/2704403002 Cr-Commit-Position: refs/heads/master@{#456093} Committed: https://chromium.googlesource.com/chromium/src/+/fe8a1e6ad75ca7bca3a6145116e6658968cd0ef6

Patch Set 1 : Prepare for review #

Total comments: 2

Patch Set 2 : Do not start the externalt CC result fetcher if it already finished. #

Total comments: 6

Patch Set 3 : Clean-up the transient state before scheduling a new ExternalCcResultFetcher #

Total comments: 4

Patch Set 4 : Address code review #

Patch Set 5 : Remove retry logic from the ExternalCcResultFetcher #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -14 lines) Patch
M components/signin/core/browser/gaia_cookie_manager_service.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M components/signin/core/browser/gaia_cookie_manager_service.cc View 1 2 3 4 6 chunks +16 lines, -12 lines 2 comments Download

Messages

Total messages: 32 (19 generated)
msarda
Please take a look.
3 years, 10 months ago (2017-02-21 14:53:19 UTC) #4
Roger Tawa OOO till Jul 10th
https://codereview.chromium.org/2704403002/diff/20001/components/signin/core/browser/gaia_cookie_manager_service.cc File components/signin/core/browser/gaia_cookie_manager_service.cc (right): https://codereview.chromium.org/2704403002/diff/20001/components/signin/core/browser/gaia_cookie_manager_service.cc#newcode288 components/signin/core/browser/gaia_cookie_manager_service.cc:288: helper_->StartFetchingMergeSession(); I wonder if you need to explicitly call ...
3 years, 10 months ago (2017-02-21 16:15:16 UTC) #5
msarda
Roger: May I ask you to take a second look (please ignore changes in the ...
3 years, 10 months ago (2017-02-23 17:29:22 UTC) #8
Roger Tawa OOO till Jul 10th
Hi Mihai, I'm trying to understand the original problem. You say that if /GetCheckConnectionInfo fails ...
3 years, 10 months ago (2017-02-23 19:00:00 UTC) #9
msarda
I've added a comment below the list of calls that lead to this error. I've ...
3 years, 10 months ago (2017-02-24 12:53:40 UTC) #11
Roger Tawa OOO till Jul 10th
Hi Mihai, I think I understand now what is going on. Please see below and ...
3 years, 10 months ago (2017-02-24 17:20:15 UTC) #13
msarda
https://codereview.chromium.org/2704403002/diff/100001/components/signin/core/browser/gaia_cookie_manager_service.cc File components/signin/core/browser/gaia_cookie_manager_service.cc (right): https://codereview.chromium.org/2704403002/diff/100001/components/signin/core/browser/gaia_cookie_manager_service.cc#newcode200 components/signin/core/browser/gaia_cookie_manager_service.cc:200: On 2017/02/24 17:20:15, Roger Tawa wrote: > I would ...
3 years, 9 months ago (2017-03-03 14:25:01 UTC) #16
msarda
Roger: Please take another look. Note that there was no point in adding unit tests ...
3 years, 9 months ago (2017-03-07 13:28:22 UTC) #22
msarda
Note that perf is done, may I ask you to take another look?
3 years, 9 months ago (2017-03-10 15:11:32 UTC) #25
Roger Tawa OOO till Jul 10th
lgtm Thanks for being patient with me :-) Do you plan to leave VLOGs in ...
3 years, 9 months ago (2017-03-10 16:48:51 UTC) #26
msarda
I prefer keeping the VLOG (the entire file uses VLOG). I do not see any ...
3 years, 9 months ago (2017-03-10 16:53:20 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2704403002/140001
3 years, 9 months ago (2017-03-10 16:54:31 UTC) #29
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 17:39:56 UTC) #32
Message was sent while issue was closed.
Committed patchset #5 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/fe8a1e6ad75ca7bca3a6145116e6...

Powered by Google App Engine
This is Rietveld 408576698