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

Issue 2563033002: Make the BattOr agent retry start tracing when we fail to read an ack (Closed)

Created:
4 years ago by charliea (OOO until 10-5)
Modified:
4 years ago
CC:
chromium-reviews, eyaich
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make the BattOr agent retry start tracing when we fail to read an ack This should greatly mitigate a current bug in the BattOr firmware where sending the command to start tracing causes the BattOr to reset. In this case, we now retry the full initialization sequence. Because the error we're hitting is a timeout, and we allow 4 seconds for a command to be executed before timing out, this means that initialization will retry after 4 seconds and then make 20 attempts to initialize the BattOr 100 milliseconds apart from each other, making the whole sequence take something like 6 additional seconds. We can retry this full sequence up to 5 times. When added to the five or so seconds that the BattOr already takes to initialize, this means that this full sequence might take up to 11 * 5 = 55 seconds before deciding that the BattOr can't be initialized. In practice, I suspect that almost all initializations will succeed on either their first or second attempts. BUG=672631 Committed: https://crrev.com/ee8618f9e765917145cc20b136cb6a3ba324db53 Cr-Commit-Position: refs/heads/master@{#437548}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -13 lines) Patch
M tools/battor_agent/battor_agent.h View 1 chunk +3 lines, -0 lines 0 comments Download
M tools/battor_agent/battor_agent.cc View 6 chunks +40 lines, -3 lines 0 comments Download
M tools/battor_agent/battor_agent_unittest.cc View 4 chunks +75 lines, -10 lines 0 comments Download
M tools/battor_agent/battor_error.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/battor_agent/battor_error.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (10 generated)
rnephew (Reviews Here)
On 2016/12/09 14:35:34, commit-bot: I haz the power wrote: > Dry run: CQ is trying ...
4 years ago (2016-12-09 14:46:48 UTC) #5
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/2563033002/1
4 years ago (2016-12-09 14:48:58 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-09 15:49:20 UTC) #12
commit-bot: I haz the power
4 years ago (2016-12-09 15:51:13 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/ee8618f9e765917145cc20b136cb6a3ba324db53
Cr-Commit-Position: refs/heads/master@{#437548}

Powered by Google App Engine
This is Rietveld 408576698