Skip to content

builtin file watcher: log when graph is dropped#1310

Open
lf- wants to merge 1 commit intofacebook:mainfrom
MercuryTechnologies:jade/push-vntvrmrtztsw
Open

builtin file watcher: log when graph is dropped#1310
lf- wants to merge 1 commit intofacebook:mainfrom
MercuryTechnologies:jade/push-vntvrmrtztsw

Conversation

@lf-
Copy link
Copy Markdown
Contributor

@lf- lf- commented May 2, 2026

The file watcher can lose events due to event storms from the kernel or such; previously this was never actually reported. This reports it.

Test plan: yolo. I don't really have a way to repro an event storm.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 2, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented May 2, 2026

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this in D103482839. (Because this pull request was imported automatically, there will not be any future comments.)

@cormacrelf
Copy link
Copy Markdown
Contributor

I'm not sure but you can probably just suspend buckd via kill -STOP or kill -TSTP. Then you spam it by just touching a file max_queued_events + 1 times. When you resume kill -CONT, it should trigger queue overflow.

/proc/sys/fs/inotify/max_queued_events is where new inotify instances get their queue size from during init.

The file watcher can lose events due to event storms from the kernel or
such; previously this was never actually reported. This reports it.

Test plan: yolo. I don't really have a way to repro an event storm.
@lf- lf- force-pushed the jade/push-vntvrmrtztsw branch from 094f1e7 to de5fa9a Compare May 4, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants