Skip to content

When an exception occurs during open the lock file is not unlocked #394

Description

@Apollon77

If you open the DB and theis fails e.g. because of invalid data in a line (and not using ignore errors) then this fails. But it do not unlock the lock file. a Close will also not unlock the lockfile because _isOpen is still false (because DB was never really open).

Relates to ioBroker/ioBroker.admin#1833 (comment)

For the "iob fix" command the plan was to use open without ignoreError, then catch an error, log a line and open DB with "ignoreErrors" ... but this fails because of lockfile is still there and locked

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions