tagomoris/fluent-plugin-forest

out_forest stalls on Ruby-2.0.0-p353

kiyoto opened this issue · 5 comments

Environment

  • Ubuntu precise 64-bit (inside Docker container)
  • Ruby-2.0.0-p353

Steps to reproduce

Configuration

$ cat fluent.conf
<source>
  type forward
</source>

<match nodelog.*>
  type forest
  subtype file
  <template>
    path /home/fluentd/test/nodelog.__TAG__
    flush_interval 3s
  </template>
</match>

Command

$ fluentd -c fluent.conf --daemon pid.log -o debug.log -vv
$ echo '{"hello":"world"}' | fluent-cat nodelog.hogehoge

(...and the file buffer never gets created UPDATE minor edits to make the above commands correct)

It looks like it stalls here (not 100% sure)

Caveat

The above configuration worked with ruby 2.2.0dev (2014-04-20 trunk 45641) [x86_64-linux]

Please check this list below.

  • With ruby 2.1.1?
  • With buffered_stdout? (fluent-plugin-buffered-stdout)
<match nodelog.*>
  type forest
  subtype buffered_stdout
  <template>
    buf_type file
    buffer_path /home/fluentd/test/stdout_buffer.__TAG__
    flush_interval 3s
  </template>
</match>
  • With 2.0.0-p353, it also stalled (no "test/..." directory created) with buffered_stdout.
  • With 2.1.1-p76, the original configuration worked (did NOT stall).

Thanks! I'll try to reproduce it later.