Skip to content

Open File Handles on Windows #246

@strawgate

Description

@strawgate

For some reason, DuckDB and DiskCache are both leaking file handles on Windows only?

TemporaryFile is unable to clean-up the folders, it looks a lot like a clean-up race condition where the close call appears to do something but not finish maybe?

Sometimes the error is "not a directory" but I think that might just be that the file disappears in between the iter and the check to see if it's a directory?

It's perhaps a new problem since our recent refactor?

It happens even when directly calling await .close() prior to exiting the temporaryfile context manager.

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