Before reporting an issue, please ensure you are using the latest release of fsnotify.
Which operating system (GOOS) and version are you using?
Linux version 3.10.0-957.27.2.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Mon Jul 29 17:46:05 UTC 2019
cat /proc/sys/fs/inotify/max_queued_events
16384
fsnotify version:v1.4.9
Please describe the issue that occurred.
I notify four folder, write three file at the same time in folder /data/logs/nginx, after few second rename three file to the other three folder /data/a, /data/b, /data/c, and this error happen
Are you able to reproduce the issue? Please provide steps to reproduce and a code sample if possible.
folderNotify, err := fsnotify.NewWatcher()
if err != nil {
panic(fmt.Sprintf("new fsnotify err=%v", err))
}
folderNotify.Add("/data/logs/nginx")
folderNotify.Add("/data/a")
folderNotify.Add("/data/b")
folderNotify.Add("/data/c")
for {
select {
case event, ok := <-folderNotify.Events:
if !ok {
return
}
//do something
println(event.Name)
case err, ok := <-folderNotify.Errors:
if !ok {
return
}
panic(fmt.Sprintf("notify folder error:%s", err.Error()))
}
}
Before reporting an issue, please ensure you are using the latest release of fsnotify.
Which operating system (GOOS) and version are you using?
Linux version 3.10.0-957.27.2.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Mon Jul 29 17:46:05 UTC 2019
cat /proc/sys/fs/inotify/max_queued_events 16384
fsnotify version:v1.4.9
Please describe the issue that occurred.
I notify four folder, write three file at the same time in folder /data/logs/nginx, after few second rename three file to the other three folder /data/a, /data/b, /data/c, and this error happen
Are you able to reproduce the issue? Please provide steps to reproduce and a code sample if possible.
test code