-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 plugin, position data in pos_file often was deleted? disappear? #4103
Comments
even if I changed pos_file location to local storage (not nfs) same phenomena occurred 🥲 |
Somehow the pos_file seems to be broken. Please tell me how to reproduce it in local storage in more detail. |
There are two conditions are necessary to reproduce. First one is I think the key is NFS, there is an issue when fluentd checks the structure and files inside the folder(
Yes.
When I checked the content of the pos_file before cleaned up, there is no strange formats . |
@SML0127 I have heard before that we should not put pos_file on NFS.
I was wondering if this phenomenon happens on local storage as well.
But, as a result, does this happen only on NFS? If so, it could be due to differences in disk write speeds, file system flushing timing, etc... Until the cause of this problem is found and fixed, is it possible to work around this issue by setting longer |
@daipom Since I'm not sure of the root cause of this issue and whether it work's properly on local system, I have one question, is there any guideline in the fluentd documentation that do not use NFS to |
@SML0127
I don't think there is any such guideline. |
Describe the bug
The postition information of each file in pos_file disappears.
And only empty pos_file remain.
After that, several phenomena occur.
Such as "Unparsable line in pos_file: 000000000796950c" in fluentd log,
or position information is added for files that have already been tailed, and it starts to tail again from the beginning of file.
To Reproduce
fluentd-conf.yaml
/fluentd/source-data/ is NFS mounted server directory
Expected behavior
pos_file only compacts(or delete) position data when tracked file deleted or position data of duplicated file appended.
Your Environment
Your Configuration
fluentd-conf.yaml
/fluentd/source-data/ is NFS mounted server directory
Your Error Log
Additional context
No response
The text was updated successfully, but these errors were encountered: