Skip to content

Improve inotify initialization error message#731

Merged
mattn merged 1 commit into
fsnotify:mainfrom
shawnhuang92:fix/inotify-init-error
Apr 22, 2026
Merged

Improve inotify initialization error message#731
mattn merged 1 commit into
fsnotify:mainfrom
shawnhuang92:fix/inotify-init-error

Conversation

@shawnhuang92

Copy link
Copy Markdown
Contributor

Description

Improves the error message when inotify initialization fails in newBackend().

Motivation

fsnotify is used by Kubernetes. Previously, when inotify init failed, the error lacked context:

err="failed complete: too many open files"

This made it hard to identify the root cause.

After This PR

err="failed complete: couldn't initialize inotify: too many open files"

Benefits

  • Clearer context: Immediately identifies inotify as the failure source
  • Better debugging: Helps users and AI tools diagnose issues faster

@mattn

mattn commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

@shawnhuang92 Could you please rebase master branch?

@shawnhuang92 shawnhuang92 force-pushed the fix/inotify-init-error branch from 5a37846 to d15fb2b Compare April 22, 2026 04:48
@shawnhuang92

Copy link
Copy Markdown
Contributor Author

@shawnhuang92 Could you please rebase master branch?

@mattn Rebased and updated. Thanks!

@mattn

mattn commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

LGTM

@mattn mattn merged commit 4b9ab19 into fsnotify:main Apr 22, 2026
18 checks passed
@mattn

mattn commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants