| 166 | |
| 167 | |
| 168 | void 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 | |
| 186 | void QueryExecMgr::ReleaseQueryState(QueryState* qs) { |
| 187 | DCHECK(qs != nullptr); |
nothing calls this directly
no test coverage detected