Skip to content

Commit 27b757b

Browse files
committed
fix
1 parent c336990 commit 27b757b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/paimon/format/avro/avro_output_stream_impl.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ void AvroOutputStreamImpl::FlushBuffer() {
7171
fmt::format("write failed, expected length: {}, actual write length: {}", length,
7272
write_len.value()));
7373
}
74-
out_->Flush();
74+
Status status = out_->Flush();
75+
if (!status.ok()) {
76+
throw std::runtime_error("flush failed, status: " + status.ToString());
77+
}
7578
next_ = buffer_;
7679
available_ = buffer_size_;
7780
}

0 commit comments

Comments
 (0)