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

Method RemoveRemoteDirForHost

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

Source from the content-addressed store, hash-verified

471}
472
473void TmpFileMgr::RemoveRemoteDirForHost(const string& dir, hdfsFS hdfs_conn) {
474 if (!FLAGS_remote_scratch_cleanup_on_start_stop) return;
475 DCHECK(hdfs_conn != nullptr);
476 const string hostlevel_dir = ConstructRemoteDirPath(
477 dir, ExecEnv::GetInstance()->configured_backend_address().hostname);
478 if (hdfsExists(hdfs_conn, hostlevel_dir.c_str()) == 0) {
479 hdfsDelete(hdfs_conn, hostlevel_dir.c_str(), 1);
480 LOG(INFO) << "Called to remove the host-level remote directory " << hostlevel_dir;
481 }
482}
483
484void TmpFileMgr::RemoveRemoteDirForQuery(TmpFileGroup* file_group) {
485 if (tmp_dirs_remote_ == nullptr) return;

Callers 1

VerifyAndCreateMethod · 0.80

Calls 1

ConstructRemoteDirPathFunction · 0.85

Tested by

no test coverage detected