-
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
Fluentd error_class=NoMethodError error="undefined method `get' for nil:NilClass" on startup #3718
Comments
fluentd/lib/fluent/plugin/output.rb Line 1341 in 438a82a
fluentd/lib/fluent/plugin/output.rb Line 506 in 438a82a
It should be initialized at |
@ashie It seems that after k8s rollout it tries to start from the oldest meta files that don't have logs anymore and weren't deleted for example it looks like this in the buffer:
after deleting them and restarting the pod the issue gets fixed. |
Because `@output_flush_thread_current_position` isn't initialize before starting flush threads, it might cause crash when flush threads start to processing buffers before initializing it at main thread. Fixes #3718 Signed-off-by: Takuro Ashie <[email protected]>
It's fixed in master branch but not yet released. |
Describe the bug
After fluentd rollout in k8s sometimes buffer is left with only
.meta
files which causesnil:nilclass
errorsfrom this point fluentd is running (doesn't crash) but doesn't receive any logs or sends any logs, and only shows errors.
To Reproduce
It happens after rollout on start of the pods (not all pods are affected)
Expected behavior
All pods starting normally
Your Environment
Your Configuration
Your Error Log
The text was updated successfully, but these errors were encountered: