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

Issue 1415933011: Change the update_client task runner behavior to continue on shutdown. (Closed)

Created:
5 years, 1 month ago by Sorin Jianu
Modified:
5 years, 1 month ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change the update_client task runner behavior to continue on shutdown. Historically, we've had issues with running the BITS COM client on threads and interfering with the browser shutdown. For reason not entirely understood, some out of process COM calls, and most common the call to enumerate BITS jobs appear to hang and consequently trigger the browser hang shutdown detector. At first, we had run this code on the FILE thread, then we had moved it on blocking pool threads. However, the net effect is that the hang moved as well. This change avoids blocking the shutdown by allowing the code to run after the browser shutdown until the OS terminates the thread as part of the process exit. While it is somehow difficult to reason about the correctness of the update_client code, this change is reasonably safe to make due to aspects of refcounting and containment of the update_client such as not accessing browser global state and refcounting the objects that are thread aware. BUG=552028 Committed: https://crrev.com/5081941b99d37952e1c60c9cb24257369d9c6416 Cr-Commit-Position: refs/heads/master@{#359138}

Patch Set 1 #

Patch Set 2 : comment updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -22 lines) Patch
M chrome/browser/component_updater/chrome_component_updater_configurator.cc View 1 chunk +5 lines, -1 line 0 comments Download
M components/component_updater/component_updater_service.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/component_updater/component_updater_service_unittest.cc View 5 chunks +6 lines, -0 lines 0 comments Download
M components/update_client/task.h View 1 chunk +5 lines, -0 lines 0 comments Download
M components/update_client/task_update.h View 1 chunk +5 lines, -2 lines 0 comments Download
M components/update_client/task_update.cc View 2 chunks +12 lines, -4 lines 0 comments Download
M components/update_client/update_client.h View 2 chunks +8 lines, -0 lines 0 comments Download
M components/update_client/update_client.cc View 1 4 chunks +38 lines, -7 lines 0 comments Download
M components/update_client/update_client_internal.h View 3 chunks +6 lines, -8 lines 0 comments Download
M extensions/browser/updater/update_service_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 28 (11 generated)
Sorin Jianu
5 years, 1 month ago (2015-11-10 01:03:07 UTC) #3
waffles
lgtm
5 years, 1 month ago (2015-11-10 01:18:28 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415933011/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415933011/20001
5 years, 1 month ago (2015-11-10 01:30:28 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/116962)
5 years, 1 month ago (2015-11-10 02:47:01 UTC) #8
Sorin Jianu
Antony, please, I need an owner's review for extensions/browser/updater/update_service_unittest.cc.
5 years, 1 month ago (2015-11-10 05:30:05 UTC) #10
asargent_no_longer_on_chrome
update_service_unittest.cc lgm
5 years, 1 month ago (2015-11-10 19:53:54 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415933011/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415933011/20001
5 years, 1 month ago (2015-11-10 20:47:02 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/117205)
5 years, 1 month ago (2015-11-10 20:59:37 UTC) #15
Sorin Jianu
Antony, PTAL, there was a typo in the owner's approval and the approval was invalid.
5 years, 1 month ago (2015-11-10 22:10:01 UTC) #16
Sorin Jianu
Ken, please, I need an owner's approval for extensions/browser/updater/update_service_unittest.cc Antony's approval was ineffective due to ...
5 years, 1 month ago (2015-11-11 18:04:41 UTC) #18
Ken Rockot(use gerrit already)
On 2015/11/11 at 18:04:41, sorin wrote: > Ken, please, I need an owner's approval for ...
5 years, 1 month ago (2015-11-11 18:05:52 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415933011/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415933011/20001
5 years, 1 month ago (2015-11-11 18:09:17 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/55872) linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 1 month ago (2015-11-11 18:18:07 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415933011/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415933011/20001
5 years, 1 month ago (2015-11-11 18:53:03 UTC) #25
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-11-11 19:35:43 UTC) #26
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/5081941b99d37952e1c60c9cb24257369d9c6416 Cr-Commit-Position: refs/heads/master@{#359138}
5 years, 1 month ago (2015-11-12 19:59:37 UTC) #27
Sorin Jianu
5 years, 1 month ago (2015-11-12 23:52:38 UTC) #28
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/1439153002/ by sorin@chromium.org.

The reason for reverting is: This change is a suspect for causing
crbug.com/475872.

Powered by Google App Engine
This is Rietveld 408576698