Skip to content

Commit

Permalink
Merge pull request #3079 from fluent/fix-log-for-chunk_limit_records
Browse files Browse the repository at this point in the history
buffer: Fix log message for chunk_limit_records case. fix #3072
  • Loading branch information
repeatedly authored Jul 22, 2020
2 parents b03ee59 + e80d532 commit be905c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/fluent/plugin/buffer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,11 @@ def write_once(metadata, data, format: nil, size: nil, &block)

if chunk_size_over?(chunk)
if format && empty_chunk
log.warn "chunk bytes limit exceeds for an emitted event stream: #{adding_bytesize}bytes"
if chunk.bytesize > @chunk_limit_size
log.warn "chunk bytes limit exceeds for an emitted event stream: #{adding_bytesize}bytes"
else
log.warn "chunk size limit exceeds for an emitted event stream: #{chunk.size}records"
end
end
chunk.rollback

Expand Down

0 comments on commit be905c9

Please sign in to comment.