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

DeleteDB should call Close() #309

Open
wparad opened this issue Apr 11, 2024 · 0 comments
Open

DeleteDB should call Close() #309

wparad opened this issue Apr 11, 2024 · 0 comments

Comments

@wparad
Copy link

wparad commented Apr 11, 2024

DeleteDB always gets blocked because the database is never closed. It should automatically be closed on Delete.

Otherwise something like this is necessary:

unwrap(await db).close();
await new Promise(resolve => setTimeout(resolve, 10000));

const deleteAsync = deleteDB(databaseName, {
    blocked(blockedVersion, blockedEvent) {
          logger.error({ title: 'Database blocked from being deleted', blockedVersion, blockedEvent });
    }
}
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