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

Issue 2616383002: Prerender: avoid race condition with canceling prerender in test. (Closed)

Created:
3 years, 11 months ago by mattcary
Modified:
3 years, 11 months ago
Reviewers:
droger, Benoit L
CC:
chromium-reviews, tburkard+watch_chromium.org, gavinp+prer_chromium.org, cbentzel+watch_chromium.org, pasko
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prerender: avoid race condition with canceling prerender in test. The test which started flaking started two prerenderers, the second which canceled the first. ChromeOS in particular exposed a race condition where the first prerender would complete before the second had a chance to cancel it. This in retrospect obvious situation exists elsewhere and has an easy fix in a HangingFirstRequestInterceptor which stalls the first prerender indefinitely, causing it to be reliably canceled by the second. BUG=679090 TBR=droger Review-Url: https://codereview.chromium.org/2616383002 Cr-Commit-Position: refs/heads/master@{#442918} Committed: https://chromium.googlesource.com/chromium/src/+/841efc17964ac66ffa6b8b5ff63436f4ff6d52c1

Patch Set 1 #

Patch Set 2 : Debugging for windows test failure #

Patch Set 3 : hang on subresource for windows #

Patch Set 4 : disable load check for windows #

Patch Set 5 : Debugging for windows hang #

Patch Set 6 : more windows debugging #

Patch Set 7 : possible windows race fix #

Patch Set 8 : fixed race condition exposed by windows test; removing debugging cruft #

Patch Set 9 : remove unused test file fetch complexity #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M chrome/browser/prerender/prerender_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (15 generated)
mattcary
3 years, 11 months ago (2017-01-09 09:58:00 UTC) #2
Benoit L
On 2017/01/09 09:58:00, mattcary wrote: lgtm
3 years, 11 months ago (2017-01-09 10:39:25 UTC) #3
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/2616383002/1
3 years, 11 months ago (2017-01-09 10:51:33 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/337259)
3 years, 11 months ago (2017-01-09 10:58:04 UTC) #9
mattcary
+droger to review for prerender owner.
3 years, 11 months ago (2017-01-09 10:59:43 UTC) #12
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/2616383002/1
3 years, 11 months ago (2017-01-09 14:47:05 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/344314)
3 years, 11 months ago (2017-01-09 15:20:35 UTC) #17
droger
lgtm (once the debugging code is removed). Can add more details to the description of ...
3 years, 11 months ago (2017-01-11 15:20:07 UTC) #18
mattcary
On 2017/01/11 15:20:07, droger wrote: > lgtm (once the debugging code is removed). > > ...
3 years, 11 months ago (2017-01-11 15:39:11 UTC) #20
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/2616383002/160001
3 years, 11 months ago (2017-01-11 15:48:11 UTC) #23
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 16:21:42 UTC) #26
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/841efc17964ac66ffa6b8b5ff634...

Powered by Google App Engine
This is Rietveld 408576698