Skip to content

The process cannot access the file because it is being used by another process. #39

@zhenyu888

Description

@zhenyu888

下载文件时有个rename操作,在windows系统上会panic,报如下错误:The process cannot access the file because it is being used by another process. 在 createDownloadTempFile 这个函数里调用了 os.Create ,但是没有关闭,加上 file.Close() 后问题得以修复,类似的 checkpoint 文件在创建后也没有调用 Close()。

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