commit | 1df10c43eab5b8c483fbf882a0c8a6e5e59c73c0 | [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 | 2765d0abccd0c754422332d114cdecc271888e2d [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