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

Method RetryWrite

be/src/runtime/tmp-file-mgr.cc:2051–2063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2049}
2050
2051Status TmpWriteHandle::RetryWrite(RequestContext* io_ctx, TmpFile* file, int64_t offset) {
2052 DCHECK(write_in_flight_);
2053 file_ = file;
2054 write_range_->SetRange(file->path(), offset, file->AssignDiskQueue());
2055 write_range_->SetDiskFile(file->GetWriteFile());
2056 Status status = io_ctx->AddWriteRange(write_range_.get());
2057 if (!status.ok()) {
2058 // The write will not be in flight if we returned with an error.
2059 write_in_flight_ = false;
2060 return status;
2061 }
2062 return Status::OK();
2063}
2064
2065void TmpWriteHandle::UploadComplete(TmpFile* tmp_file, const Status& upload_status) {
2066 if (upload_status.ok()) {

Callers 1

RecoverWriteErrorMethod · 0.80

Calls 9

OKFunction · 0.85
SetRangeMethod · 0.80
pathMethod · 0.80
AssignDiskQueueMethod · 0.80
SetDiskFileMethod · 0.80
getMethod · 0.65
GetWriteFileMethod · 0.45
AddWriteRangeMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected