diff --git a/lib/fluent/plugin/buffer/file_chunk.rb b/lib/fluent/plugin/buffer/file_chunk.rb index 6679e26530..38108d2219 100644 --- a/lib/fluent/plugin/buffer/file_chunk.rb +++ b/lib/fluent/plugin/buffer/file_chunk.rb @@ -285,6 +285,7 @@ def create_new_chunk(path, perm) @meta.set_encoding(Encoding::ASCII_8BIT) @meta.sync = true @meta.binmode + write_metadata(update: false) rescue => e # This case is easier than enqueued!. Just removing pre-create buffer file @chunk.close rescue nil