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

Method Abort

be/src/exec/tuple-file-writer.cc:165–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void TupleFileWriter::Abort() {
166 DCHECK_EQ(state_, State::InProgress);
167 DCHECK(tmp_file_ != nullptr);
168
169 kudu::Status status = tmp_file_->Close();
170 if (!status.ok()) {
171 LOG(WARNING) <<
172 Substitute("Failed to close file $0: $1", TempPath(), status.ToString());
173 }
174
175 // Delete the file.
176 status = kudu::Env::Default()->DeleteFile(TempPath());
177 if (!status.ok()) {
178 LOG(WARNING) <<
179 Substitute("Failed to unlink $0: $1", TempPath(), status.ToString());
180 }
181 tmp_file_.reset();
182 state_ = State::Aborted;
183}
184
185Status TupleFileWriter::Commit(RuntimeState* state) {
186 DCHECK_EQ(state_, State::InProgress);

Callers 3

GetNextMethod · 0.45
CloseMethod · 0.45
TEST_FFunction · 0.45

Calls 7

SubstituteFunction · 0.85
DefaultClass · 0.85
resetMethod · 0.65
CloseMethod · 0.45
okMethod · 0.45
ToStringMethod · 0.45
DeleteFileMethod · 0.45

Tested by 1

TEST_FFunction · 0.36