Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Apollon77 opened this issue Dec 16, 2022 · 0 comments
Open

Comments

@Apollon77
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant