MCPcopy Create free account
hub / github.com/apache/impala / Commit

Method Commit

be/src/exec/tuple-text-file-writer.cc:66–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void TupleTextFileWriter::Commit() {
67 DCHECK(writer_.is_open());
68 writer_.close();
69 if (writer_.fail()) {
70 // An error occurred while writing or closing the file.
71 string err_msg = GetStrErrMsg();
72 LOG(WARNING) << "Failed to flush " << path_ << ": " << err_msg;
73 return;
74 }
75 LOG(INFO) << "Tuple Cache Debug: Commit completed successfully for " << path_;
76}
77
78bool TupleTextFileWriter::IsEmpty() const {
79 return BytesWritten() == 0;

Callers

nothing calls this directly

Calls 3

GetStrErrMsgFunction · 0.85
closeMethod · 0.65
is_openMethod · 0.45

Tested by

no test coverage detected