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

Method ExecuteQueryHelper

be/src/runtime/query-exec-mgr.cc:168–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166
167
168void QueryExecMgr::ExecuteQueryHelper(QueryState* qs) {
169 // Start the query fragment instances and wait for completion or errors.
170 if (LIKELY(qs->StartFInstances())) qs->MonitorFInstances();
171
172 if (FLAGS_log_mem_usage_interval > 0) {
173 uint64_t num_complete = ImpaladMetrics::IMPALA_SERVER_NUM_FRAGMENTS->GetValue();
174 if (num_complete % FLAGS_log_mem_usage_interval == 0) {
175 // This outputs how much memory is currently being used by this impalad
176 LOG(INFO) << MallocUtil::GetInstance()->GetTextDescription();
177 }
178 }
179
180 // decrement refcount taken in QueryState::Init();
181 qs->ReleaseBackendResourceRefcount();
182 // decrement refcount taken in StartQuery()
183 ReleaseQueryState(qs);
184}
185
186void QueryExecMgr::ReleaseQueryState(QueryState* qs) {
187 DCHECK(qs != nullptr);

Callers

nothing calls this directly

Calls 5

StartFInstancesMethod · 0.80
MonitorFInstancesMethod · 0.80
GetValueMethod · 0.45
GetTextDescriptionMethod · 0.45

Tested by

no test coverage detected