Details
-
Test
-
Resolution: Won't Fix
-
Major
-
Lamprey 12.0.0
-
None
-
QEMU x86_64
Description
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.