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

Method CleanupAtShutdown

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

Source from the content-addressed store, hash-verified

415}
416
417void TmpFileMgr::CleanupAtShutdown() {
418 // Try to clear the host-level remote temporary directory.
419 if (tmp_dirs_remote_ == nullptr) return;
420 hdfsFS hdfs_conn;
421 Status status = tmp_dirs_remote_->GetConnection(this, &hdfs_conn);
422 if (!status.ok()) {
423 LOG(WARNING) << "Unable to get a connection to " << tmp_dirs_remote_->path_
424 << " for clearing the directory on shutdown";
425 return;
426 }
427 RemoveRemoteDirForHost(tmp_dirs_remote_->path_, hdfs_conn);
428}
429
430Status TmpFileMgr::CreateTmpFileBufferPoolThread(MetricGroup* metrics) {
431 DCHECK(metrics != nullptr);

Callers 1

ShutdownThreadMethod · 0.80

Calls 2

GetConnectionMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected