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

Issue 385653002: [Android] Fix a deadlock between telemetry and DeviceUtils. (Closed)

Created:
6 years, 5 months ago by jbudorick
Modified:
6 years, 5 months ago
Reviewers:
tonyg
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Android] Fix a deadlock between telemetry and DeviceUtils. Many functions in Python's logging module grab a lock internally. Some appear to do so before converting the provided message to a string via its __str__ method. Calling an object's __str__ method before calling a logging funciton allows anything called by the __str__ method to log without the risk of hitting a deadlock. BUG=392869 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282412

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M tools/telemetry/telemetry/page/page_runner.py View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
jbudorick
Calling the exception's __str__ method _before_ calling logging.warning means that we do the DeviceUtils.RunShellCommand call ...
6 years, 5 months ago (2014-07-10 17:11:55 UTC) #1
tonyg
lgtm Nice!! Before landing, please update the patch description itself w/ the email from the ...
6 years, 5 months ago (2014-07-10 17:24:02 UTC) #2
jbudorick
https://codereview.chromium.org/385653002/diff/1/tools/telemetry/telemetry/page/page_runner.py File tools/telemetry/telemetry/page/page_runner.py (right): https://codereview.chromium.org/385653002/diff/1/tools/telemetry/telemetry/page/page_runner.py#newcode280 tools/telemetry/telemetry/page/page_runner.py:280: logging.warning(e) On 2014/07/10 17:24:02, tonyg wrote: > Should we ...
6 years, 5 months ago (2014-07-10 17:46:58 UTC) #3
jbudorick
The CQ bit was checked by jbudorick@chromium.org
6 years, 5 months ago (2014-07-10 17:55:11 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbudorick@chromium.org/385653002/20001
6 years, 5 months ago (2014-07-10 17:57:09 UTC) #5
commit-bot: I haz the power
6 years, 5 months ago (2014-07-10 20:16:17 UTC) #6
Message was sent while issue was closed.
Change committed as 282412

Powered by Google App Engine
This is Rietveld 408576698