commit | 60aa7283383de6f3eb6b17e9187aca3a482e88c1 | [log] [tgz] |
---|---|---|
author | Bertrand SIMONNET <bsimonnet@google.com> | Wed Sep 09 10:39:51 2015 -0700 |
committer | Bertrand SIMONNET <bsimonnet@google.com> | Mon Sep 14 13:55:33 2015 -0700 |
tree | caf438fc99b8fb5a9139512db4cb9e4cc21ffe34 | |
parent | 831983f8d7469fc4a913362e952651610d825105 [diff] |
metricsd: Persist the report to disk if an upload fails. If the metrics server is unreachable, we may need to resend a metrics report later. Instead of keeping the staged report in memory, save it to disk to avoid loosing data if the system restarts or crashes. BUG: 23033262 TEST: unit tests. Change-Id: Idd14964e40f022952469f47d675d8cda9586d7cd