Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

more robust database handline #349

Open
rebeccamadsen opened this issue Apr 22, 2022 · 0 comments
Open

more robust database handline #349

rebeccamadsen opened this issue Apr 22, 2022 · 0 comments

Comments

@rebeccamadsen
Copy link
Contributor

When a database file fails to load for any reason, Server gives an error message and then exits. It would be better to handle corruption of the individual database files separately, and not have the whole app fail to launch when possible to continue. We should also explore ways to make processing the databases more robust if possible.

For example, when a database gets corrupted, "NUL" characters show up in the .db file and prevent processing. This is perhaps occurring when the app closed unexpectedly or too soon, or that there is a rare scenario where our write code is broken. Example issues that deal with the null data are here louischatriot/nedb#480 and here louischatriot/nedb#646.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant