New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 838755 link

Starred by 3 users

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Sep 5
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Temporary fix for BlueZ's StartDiscovery and StopDiscovery retryable errors

Project Member Reported by sonnysasaka@chromium.org, May 2 2018

Issue description

The temporary fix is by having retry and backoff logic in bluetoothd for StartDiscovery and StopDiscovery. By freeing BlueZ's discovery API from retryable errors, it makes clients easier to use the API.

The ideal fix requires major refactoring of StartDiscovery and StopDiscovery and will be done in the future as it's more risky.
 
Description: Show this description

Comment 2 by r...@chromium.org, May 2 2018

If we're going to put in retry, do you think it would be a good idea to put it in the dispatcher?

We had a discussion about the possible implementations of this (go/magic-tether-metrics-improvement). Since we only need this for scanning (but not advertising), it's simpler to implement this in bluetoothd itself. If we needed a more general retrier (e.g. for both scanning and advertising), it would be simpler to have a general retrier in dispatcher.
Project Member

Comment 4 by bugdroid1@chromium.org, May 7 2018

Labels: merge-merged-chromeos-5.44
The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/bluez/+/bd1f37e94b4d2b2b2018a6a99cbb2dd939d3eef4

commit bd1f37e94b4d2b2b2018a6a99cbb2dd939d3eef4
Author: Sonny Sasaka <sonnysasaka@chromium.org>
Date: Mon May 07 06:51:23 2018

CHROMIUM: Add retries for StartDiscovery and StopDiscovery

This is a temporary fix for making StartDiscovery and StopDiscovery free
from retryable errors. This works by having a retry and backoff logic
inside bluetoothd for those methods.

BUG= chromium:838755 
TEST=Tested with simulated busy errors on StartDiscovery/StopDiscovery

Change-Id: Iea86678916ab2a4ea552b212f6aae999d163cb64
Reviewed-on: https://chromium-review.googlesource.com/1039024
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Sonny Sasaka <sonnysasaka@chromium.org>
Reviewed-by: Miao-chen Chou <mcchou@chromium.org>

[modify] https://crrev.com/bd1f37e94b4d2b2b2018a6a99cbb2dd939d3eef4/src/adapter.c

Status: Fixed (was: Assigned)
Status: Verified (was: Fixed)

Sign in to add a comment