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

Method GetDebugDumpPath

be/src/exec/tuple-cache-node.cc:422–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422string TupleCacheNode::GetDebugDumpPath(const RuntimeState* state,
423 const string& org_fragment_id, string* sub_dir_full_path) const {
424 // The name of the subdirectory is hash key.
425 // For non-reference files, the file name is the fragment instance node id.
426 // For reference files, the name includes the current fragment instance node id, the
427 // original fragment node id, and a "ref" suffix.
428 string file_name = GenerateFragmentNodeId(state, this);
429 if (!org_fragment_id.empty()) {
430 // Adds the original fragment id of the cache to the path for debugging purpose.
431 file_name = Substitute("$0_$1_ref", file_name, org_fragment_id);
432 }
433 return ExecEnv::GetInstance()->tuple_cache_mgr()->GetDebugDumpPath(
434 combined_key_, file_name, sub_dir_full_path);
435}
436
437void TupleCacheNode::DebugString(int indentation_level, stringstream* out) const {
438 *out << string(indentation_level * 2, ' ');

Callers

nothing calls this directly

Calls 4

GenerateFragmentNodeIdFunction · 0.85
SubstituteFunction · 0.85
tuple_cache_mgrMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected