Skip to content
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

[error]: #0 unexpected error on reading data host="192.168.16.9" port=64283 error_class=NoMethodError error="undefined method `empty?' for nil:NilClass" #1973

Closed
felixzh2020 opened this issue May 7, 2018 · 9 comments
Labels
bug Something isn't working

Comments

@felixzh2020
Copy link

felixzh2020 commented May 7, 2018

# built-in TCP input
<source>
  @type forward
  port 24224
  bind 0.0.0.0
</source>

# Kafka buffered output
<match **>
  @type kafka_buffered
  
  brokers       192.168.16.8:9092

  buffer_type   file
  buffer_path   /var/log/fluent/buffer-01/*.buffer
 
  flush_interval 10s
  buffer_chunk_limit 8m
  buffer_queue_limit 3600

  retry_wait          1s
  max_retry_wait      60s
  disable_retry_limit true

  # ruby-kafka producer options
  max_send_retries    1
  required_acks       1
  compression_codec   gzip
  output_data_type json
  output_include_time true
  num_threads   3
</match>

<system>
  # loglevel: trace, debug, info, warn, error
  log_level trace
</system>

This error lead to error, as follow:
emit transaction failed: error_class=NoMethodError error="undefined method `empty?' for nil:NilClass" tag="json.test"

@felixzh2020
Copy link
Author

The error's position is /fluentd-1.1.3/lib/fluent/plugin/buffer.rb:544:in `write_once'
image

@felixzh2020
Copy link
Author

Fluentd send its debug log, also exists this error:
[warn]: #0 emit transaction failed: error_class=NoMethodError error="undefined method `empty?' for nil:NilClass" tag="fluent.trace"

@jl2005
Copy link
Contributor

jl2005 commented May 18, 2018

I have same issue.

@repeatedly
Copy link
Member

repeatedly commented May 23, 2018

@felixzh2015 Could you show the reproducible step?
I tested your configuration with fluentd v1.2.0 and fluent-plugin-kafka v0.7.2 but no above error happen.

@felixzh2020
Copy link
Author

felixzh2020 commented May 25, 2018

This can't always happen. You need to run for a long time.
I use fluent-logger-java.
@repeatedly

@gangseok514
Copy link

gangseok514 commented Oct 15, 2018

I have same issue in v1.2.1

emit transaction failed: error_class=NoMethodError error="undefined method `empty?' for nil:NilClass" location="/var/lib/gems/2.3.0/gems/fluentd-1.2.1/lib/fluent/plugin/buffer.rb:544:in `write_once'

@ganmacs ganmacs added the bug Something isn't working label Dec 23, 2019
@cosmo0920
Copy link
Contributor

cosmo0920 commented Mar 17, 2021

I'm trying to reproduce this issue with current master( e2259a5), but I couldn't reproduce it....

@felixzh2020
Copy link
Author

This can't always happen. You need to run for a long time. You need to send big data

@daipom
Copy link
Contributor

daipom commented Apr 10, 2023

We know that such an error occurs when a chunk file is corrupted due to an abnormal outage, etc.
We are working on improving the feature for chunk file corruption in this issue.

So I close this issue now, but if you are still experiencing these errors even though an abnormal outage doesn't occur, please contact us.

@daipom daipom closed this as completed Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants