Skip to content

Allow unlink for LocalUnopened files #1743

@vladem

Description

@vladem

Tell us more about this new feature.

Currently unlink is only allowed for files in WriteStatus::Remote state. The proposal is to allow unlink in other states.

From the #1735:

We encountered an issue when files became permanently stuck and could not be deleted. This happens when a process crashes (or is killed) between the mknod and open FUSE calls.

The file is created in LocalUnopened state, but since the process never opens it for writing, there's no way to complete or cancel the write, and unlink becomes blocked if we try to delete the stale file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions