Won't Fix
Details
Details
Assignee
Unassigned
UnassignedReporter
Shruti
ShrutiFix versions
Labels
Hardware Platform(s) Affected
QEMU x86_64
Affects versions
Due date
May 25, 2022
Priority
Created May 18, 2022 at 11:43 AM
Updated July 22, 2022 at 3:06 PM
Resolved July 22, 2022 at 3:06 PM
When using agl-service-data-persistence, the data gets lost when the image is restarted. But the Data should be present in the database as it is a persistent storage. I'm trying to figure out how to keep the database alive between restarts.
Also, database is stored in location /var/platform-scope and this might be the reason why it gets wiped on restart.
Steps to reproduce the issue:
To launch the image, run qemu from the command line. On the lamprey branch, the image is agl-demo-platform-crosssdk for x86-64.
Run afb-daemon —ws-client=unix:/run/platform/apis/ws/persistence —port=xxxx —token=' ' -v to start the api.
To test the api, use afb-client-demo localhost:xxxx/api?token=' ' persistence insert {"key":"k","value":"v"}
persistence read {"key":"k"}
Data is lost when the image is restarted.