Skip to content

Fix panick when file watcher failed to get created#10682

Merged
kevinyang372 merged 1 commit into
masterfrom
kevin/fix-filewatcher-panic
May 12, 2026
Merged

Fix panick when file watcher failed to get created#10682
kevinyang372 merged 1 commit into
masterfrom
kevin/fix-filewatcher-panic

Conversation

@kevinyang372
Copy link
Copy Markdown
Member

@kevinyang372 kevinyang372 commented May 11, 2026

Description

Fixes APP-4438

File watcher creation could fail if we hit some system resource limit (e.g. file watcher limit on Linux). Instead of panicking, we should handle it gracefully

@cla-bot cla-bot Bot added the cla-signed label May 11, 2026
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 11, 2026

@kevinyang372

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

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

Overview

This PR changes filesystem watcher initialization so a watcher creation failure returns an error and logs file watching as disabled instead of panicking. Subsequent watch registration calls should fail through the existing channel error path once the background thread exits.

Concerns

  • No blocking correctness, error-handling, performance, or security concerns found in the changed lines.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@kevinyang372 kevinyang372 merged commit 21e70d5 into master May 12, 2026
37 of 38 checks passed
@kevinyang372 kevinyang372 deleted the kevin/fix-filewatcher-panic branch May 12, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants