You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Work around fix (not tested).
In file vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.X/lib/filewatch/discoverer.rb
replace the whole if .. end block starting at line 65 with:
if watched_file.nil?
begin
path_stat = PathStatClass.new(pathname)
rescue Errno::ENOENT
next
end
watched_file = WatchedFile.new(pathname, path_stat, @settings)
new_discovery = true
end
guyboertje
pushed a commit
to guyboertje/logstash-input-file
that referenced
this issue
Sep 7, 2018
This is hard to create a meaningful test for this.
The async `rm` call will have to occur at exactly the right point between a file being discovered and it being deleted.
Fixeslogstash-plugins#204
…#208)
This is hard to create a meaningful test for this.
The async `rm` call will have to occur at exactly the right point between a file being discovered and it being deleted.
Fixes#204
If a discovered file is removed before Discoverer has a created a WatchedFile for it then the WatchedFile creation step throws Errno::ENOENT.
The text was updated successfully, but these errors were encountered: