Skip to content

Remote filesystems can throw errors besides ENOENT that also mean that a file has gone. #202

Open
@guyboertje

Description

@guyboertje

When we stat a filepath, if we get Errno::ENOENT we place the watched file into a delay_delete cycle meaning we need to get two successive Errno::ENOENT errors to actually initiate a cleanup.

We can't really test for these scenarios and so we rely on user feedback to identify them in order to change the code to handle these different errors as if they are equivalent to Errno::ENOENT. Currently any errors that are not Errno::ENOENT are logged at the error log level.

I propose to add a new setting that allows users to provide a set of strings that when converted to regexes are applied to the error message, when matched, will be treated as equivalent to Errno::ENOENT.

Naming is hard and I haven't got a clue as to what name to give to this setting.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions