-
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
undefined method '<' for nil:NilClass #1589
Comments
After some investigation I have a few meta files that are empty. I used the following to find them Dir.glob('/var/log/cruncher/*.meta') do |meta_file|
begin
f = MessagePack.unpack(File.read(meta_file))
if f["timekey"].nil?
puts "BAD METAFILE"
puts meta_file
end
rescue Exception => e
puts "BAD METAFILE"
puts meta_file
end
end I am unsure how it got in this state where the meta is empty |
Thanks for the report. And is your setup only v0.14? |
Yup we only use v0.14 and do around 20~40GB a day. This bug actually showed up on version |
Can confirm that I'm seeing the same issue on my production servers. We're doing a similar amount of traffic as @chrisrecalis (around ~30GB a day). However I'm having a lot more bad metafiles than him, 65516 of them to be exact. (which for some reason is nearly the same as the open file limit which is 65536) I'm having some buffering issues with the open file limit being reached but I'll open another issue for that, maybe it is somehow related to this issue. EDIT: In fact, after I remove all the .log and .meta files in the buffer directory and restarting td-agent the error keeps appearing in the logs. |
I continue to investigate this problem but the problem is not reproduced on my environment.
|
Does anyone test #1628 patch for this case? |
I released v0.14.20.rc1 with #1628 patch. |
We released v0.14.20 with above patch and build new docker image. |
Thanks @repeatedly! We just updated our deployment yesterday to Side Note: we did get the empty meta file again on |
Sorry for not checking back in quickly. We've been running |
Problem
Consistently getting the following error
undefined method '<' for nil:NilClass
inside lib/fluent/plugin/output.rb. From first glance it looks as though the meta data timekey is nil somehow. Fluent then backs up and is unable to move on and flush anymore buffers. I'm unable to tell which chunk is causing thisConfiguration
fluentd version:
0.14.17
type
bigquery
is a custom plugin which inherits from Fluent::Plugin::OutputError Logs
The text was updated successfully, but these errors were encountered: