Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Robust recursive FileWatcher support using notify #265

Merged
merged 11 commits into from
Aug 2, 2019

Conversation

twelho
Copy link
Contributor

@twelho twelho commented Aug 1, 2019

This achieves what #258 was supposed to. After experimentation we found out that https://github.com/rjeczalik/notify natively supports recursive watches with inotify in a much more robust way than having external directory handler implementations.

The benchmark here completed with 100000 files in 100 subdirectories without any missed events on my machine, so notify seems to be the most robust solution for now.

@twelho twelho added the do-not-merge/wip The PR is still work in progress label Aug 1, 2019
@twelho twelho added this to the v0.5.0 milestone Aug 1, 2019
@luxas luxas self-assigned this Aug 1, 2019
@twelho twelho removed the do-not-merge/wip The PR is still work in progress label Aug 2, 2019
Copy link
Contributor

@luxas luxas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, thanks!

LGTM 👍

@luxas luxas merged commit 34e9fca into weaveworks:master Aug 2, 2019
@luxas luxas added the kind/enhancement Categorizes issue or PR as related to improving an existing feature. label Aug 6, 2019
@twelho twelho deleted the notify-recursive branch August 29, 2020 09:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/enhancement Categorizes issue or PR as related to improving an existing feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants