Skip to content

Commit

Permalink
Merge pull request #131 from tonobo/buffer-flush-failure
Browse files Browse the repository at this point in the history
out_opensearch_data_stream: Early return on empty body
  • Loading branch information
cosmo0920 authored Apr 30, 2024
2 parents 89fe756 + 5f5333c commit 6a4b186
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/fluent/plugin/out_opensearch_data_stream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ def write(chunk)
end
end

return if bulk_message.to_s.empty?

params = {
index: data_stream_name,
body: bulk_message
Expand Down

0 comments on commit 6a4b186

Please sign in to comment.