Closed
Bug 1572509
Opened 6 years ago
Closed 6 years ago
PingUploadWorker may get stuck in infinite loop if upload disabled.
Categories
(Data Platform and Tools :: Glean: SDK, defect, P1)
Data Platform and Tools
Glean: SDK
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: travis_, Assigned: travis_)
Details
(Whiteboard: [telemetry:glean-rs:m8][telemetry:mobilesdk:m8])
Attachments
(2 files)
The current ping upload worker is checking the success of the uploadPings() function to determine if it reports that the worker needs to retry():
override fun doWork(): Result {
if (!uploadPings()) {
return Result.retry()
}
return Result.success()
}
This is a problem because the uploadPings() function returns false if getUploadEnabled() is false, creating a situation where the worker would continue to run, and retry when upload is disabled.
| Assignee | ||
Comment 1•6 years ago
|
||
PR for glean-ac
| Assignee | ||
Comment 2•6 years ago
|
||
PR for glean-rs
| Assignee | ||
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
| Comment hidden (collapsed) |
You need to log in
before you can comment on or make changes to this bug.
Description
•