commit | 736e9138de4d2cd9066ee3c92b937bf954f75ead | [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 | 906b79ba7f39dd4f18f646b73857b74e7b59705a | |
parent | 422a604d8d9966258b84f12d5ccd99f9affdd9e9 [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