Skip to content

Handeling corrupt index #9

@UpBlueio

Description

@UpBlueio

Hi,

Thank your for this great library. We use this library in a datalogger. Due to unexpected power loss the index got corrupted. The program now fails on;
index corrupted: unexpected data len: 118784

How to recover from this? Best case we can recover some of the logs. Worst case the log is not recoverable, in that case i need somehow a method to create a new log database and deleting the old database.

What i can do is purge the old folder and try again, but if there is a better way, let me know.

In our use case the datalogger uses klevdb if somehow there is no connection to the internet. In that scenario it is not unthinkable the program gets a hard reset at some point. Can the library be improved that it can handle hard resets?

Thank your for all your hard work.
Sjoerd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions