Closed Bug 1563724 Opened 6 years ago Closed 6 years ago

Investigate and ensure our use of Android directories for ping queuing is optimal

Categories

(Data Platform and Tools :: Glean: SDK, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: mdroettboom, Unassigned)

Details

(Whiteboard: [telemetry:glean-rs:backlog])

This bug applies to both glean-ac and glean-core.

There are two directories involved:

A) Pings are queued in a subdirectory of applicationInfo.dataDir, to eventually be sent and removed by the HTTPPingUploader.

B) Additionally, there is a temporary directory that pings are written to, before being moved to the queue directory, just to make sure the pings are transactionally complete. On glean-ac this is a subdirectory of getCacheDir. On glean-core, this is another subdirectory of dataDir.

Given that these files are ephemeral and really used as a fault tolerant queue, and not really permanent application data, these may not be the right choices.

In particular, we should probably answer the following questions:

  1. Are there cases where (A) would be on the much slower SD card?
  2. Are there cases where (A) and (B) are on different volumes, and thus the move operation is expensive?
Whiteboard: [telemetry:glean-rs:m?] → [telemetry:glean-rs:backlog]
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.