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
on XFS might not be able to read local storage pos file after crash #2373
Comments
Thanks for the report. Adding In addition, we need to add option like flush_mode.
Without sync, storage content can't be stored by machine crush. How about this? |
makes sense to me :) |
repeatedly
added a commit
that referenced
this issue
May 10, 2019
…ref #2373 Signed-off-by: Masahiro Nakagawa <repeatedly@gmail.com>
repeatedly
added a commit
that referenced
this issue
May 10, 2019
Signed-off-by: Masahiro Nakagawa <repeatedly@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
td-agent 2.3.6
rhel 7.6, XFS filesystem
After a kernel panic and reboot, td-agent refused to start with:
2019-04-07 15:55:50 +0000 [error]: fluent/log.rb:362:call: config error file="/td-agent/config/fluent.conf" error_class=Fluent::ConfigError error="Unexpected error: failed to read data from plugin storage file: '/var/log/journald.pos/worker0/storage.json'"
/var/log/journald.pos/worker0/storage.json existed but was 0 bytes long.
It is good practice to use fdatasync() or fsync(); on XFS it is essential:
I recommend an fdatasync or fsync call is added around here:
fluentd/lib/fluent/plugin/storage_local.rb
Line 131 in 0eec554
It may also be worth considering logging a warning in the event of a 0-length file at
fluentd/lib/fluent/plugin/storage_local.rb
Line 94 in 0eec554
The text was updated successfully, but these errors were encountered: