-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in_tail: Fluentd v1.12.3 fails to handle file rotations on Windows #3365
Comments
I suspect that this issue is the root cause of #3340. |
@cosmo0920 Could you take look this? |
Sure. I'll tackle on this in the next week. 👀 |
I'd confirmed that the current master (b6ba1c2) can be stucked with the attached configuration. % del test.log
del Adding a line after long time (over 5 seconds)
% echo aiueo >> test.log |
I'd confirmed that this issue is also happened on Linux. Not for Windows specific. $ echo "aiueo" >> test.log
$ rm test.log && sleep 60 && echo "aiueo" >> test.log can be reproducible this issue on Linux. And also this issue does not happen with Fluentd v1.11.5. |
thanks @cosmo0920. we are using Fluentd v.1.11.2, do you know if its reproducing with this version? |
That version is not reproducible this issue. This issue is only for Fluentd v1.12.x. |
Note for the mechanism of this bug: fluentd/lib/fluent/plugin/in_tail.rb Lines 363 to 374 in 5773739
Thus TailWatcher for the path stays seated in fluentd/lib/fluent/plugin/in_tail.rb Lines 752 to 830 in 5773739
|
Fixed via #3395 |
Describe the bug
After a few file rotations,
in_tail
stops tracking log files.To Reproduce
Run Fluentd with the attached configuration.
Rotate the file twice using cmd.exe
Now Fluentd just gets stuck, keeping
test.log
inDeletePending
status forever.Expected behavior
File rotation should work properly.
Your Environment
Your Configuration
Additional context
The text was updated successfully, but these errors were encountered: