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

Method CancelQueries

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

Source from the content-addressed store, hash-verified

239}
240
241void QueryExecMgr::CancelQueries(const QueryCancellationTask& to_cancel) {
242 QueryState* qs = to_cancel.GetQueryState();
243 DCHECK(qs != nullptr);
244 if (qs == nullptr) return;
245 VLOG(1) << "CancelFromThreadPool(): cancel query " << PrintId(qs->query_id());
246 qs->Cancel();
247 qs->is_coord_active_.Store(to_cancel.IsCoordActive());
248 ReleaseQueryState(qs);
249}
250
251bool QueryExecMgr::ProcessCancelQueries(
252 const vector<QueryCancellationTask>& to_cancel, bool handle_full_queue) {

Callers

nothing calls this directly

Calls 6

PrintIdFunction · 0.85
IsCoordActiveMethod · 0.80
GetQueryStateMethod · 0.45
query_idMethod · 0.45
CancelMethod · 0.45
StoreMethod · 0.45

Tested by

no test coverage detected