Skip to content

Prevent jsonl corruption #272

Description

@ezio-melotti

If the RPi is shut down or restarted while it's writing data on the jsonl files, the line might be only partially written, and the first line after reboot will be concatenated to form an invalid line. This is more likely to happen when the data is collected more often (e.g. every second).

Recovering from this is not difficult, since it only affects individual lines and detecting and discarding the truncated line is trivial, however it would be better to prevent this.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions