Closed
Bug 1189425
Opened 10 years ago
Closed 10 years ago
Remove unparsable pings from the disk
Categories
(Toolkit :: Telemetry, defect)
Toolkit
Telemetry
Tracking
()
People
(Reporter: Dexter, Assigned: gfritzsche)
References
Details
(Whiteboard: [unifiedTelemetry] [uplift5])
Attachments
(1 file, 1 obsolete file)
3.63 KB,
patch
|
gfritzsche
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
We should remove pings on JSON parsing errors and maybe on some/all load failures too.
![]() |
Assignee | |
Comment 1•10 years ago
|
||
Vladan, do you see any big problems with removing unloadable & unparsable pings from disk right away?
There is a slight risk of removing pings that are only "temporary" not readable (say for weird AV behavior etc.).
On the other hand, we can get stuck storing and trying to send pings that we can never load.
Implementing limited retry means complicating the implementation (further data to persist etc.), i'd rather avoid that unless there are pressing reasons.
Flags: needinfo?(vdjeric)
Comment 2•10 years ago
|
||
I don't have a problem with removing unparseable pings, I think that behaviour was in the old TelemetryPing.jsm telemetry too.
I wonder if you can actually remove an unreadable ping. Seems like if you can't read a ping, you probably can't remove it either.
Also, I'd be worried about adding in either change while we're trying to figure out holes in subsession chains. Either land it in Nightly 43 and don't uplift, or wait for the validation to be complete and then evaluate the data loss (if any) caused by this change.
Flags: needinfo?(vdjeric)
![]() |
Assignee | |
Comment 3•10 years ago
|
||
(In reply to Vladan Djeric (:vladan) -- please needinfo! from comment #2)
> Also, I'd be worried about adding in either change while we're trying to
> figure out holes in subsession chains. Either land it in Nightly 43 and
> don't uplift, or wait for the validation to be complete and then evaluate
> the data loss (if any) caused by this change.
Yes, i'm not planning to uplift that. This should ride on 43 or 42.
![]() |
Assignee | |
Updated•10 years ago
|
status-firefox41:
--- → wontfix
status-firefox43:
--- → affected
![]() |
Assignee | |
Updated•10 years ago
|
Assignee: nobody → gfritzsche
![]() |
Assignee | |
Updated•10 years ago
|
Status: NEW → ASSIGNED
![]() |
Assignee | |
Comment 4•10 years ago
|
||
Attachment #8648891 -
Flags: review?(vdjeric)
![]() |
Assignee | |
Comment 5•10 years ago
|
||
Unloadable pings are covered by bug 1189425.
Comment 6•10 years ago
|
||
Comment on attachment 8648891 [details] [diff] [review]
Remove unparsable pings from the disk
Review of attachment 8648891 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/telemetry/TelemetryStorage.jsm
@@ +1443,5 @@
> let array;
> try {
> array = yield OS.File.read(aFilePath, options);
> } catch(e) {
> throw new PingReadError(e.message);
log that you're ignoring it cause it's unreadable, it might make debugging easier
@@ +1457,5 @@
> ping.payload = JSON.parse(ping.payload);
> }
> } catch (e) {
> + yield OS.File.remove(aFilePath).catch((ex) => {
> + this._log.trace("loadPingFile - failed removing unparseable ping file", ex);
i would log this as a warning or error
Attachment #8648891 -
Flags: review?(vdjeric) → review+
![]() |
Assignee | |
Updated•10 years ago
|
Whiteboard: [unifiedTelemetry] → [unifiedTelemetry] [uplift5]
![]() |
Assignee | |
Updated•10 years ago
|
Iteration: --- → 43.1 - Aug 24
Comment 8•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
![]() |
Assignee | |
Comment 9•10 years ago
|
||
![]() |
Assignee | |
Updated•10 years ago
|
Attachment #8648891 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 10•10 years ago
|
||
Comment on attachment 8653368 [details] [diff] [review]
Remove unparsable pings from the disk
Approval Request Comment
[Feature/regressing bug #]:
Unified Telemetry
[User impact if declined]:
Telemetry keeps trying to load & send broken pings forever, this fixes it to remove pings it can not parse.
[Describe test coverage new/current, TreeHerder]:
Automation coverage, fine on Nightly.
[Risks and why]:
Low-risk, small isolated change and on Nightly for a while.
[String/UUID change made/needed]:
None.
Attachment #8653368 -
Flags: review+
Attachment #8653368 -
Flags: approval-mozilla-aurora?
Updated•10 years ago
|
Attachment #8653368 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 11•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•