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

Method KillQuery

be/src/service/control-service.cc:272–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272void ControlService::KillQuery(const KillQueryRequestPB* request,
273 KillQueryResponsePB* response, RpcContext* rpc_context) {
274 // Currently, we only support killing one query in one KILL QUERY statement.
275 DCHECK_EQ(request->query_ids_size(), 1);
276 const TUniqueId& query_id = ProtoToQueryId(request->query_ids(0));
277 Status status = ExecEnv::GetInstance()->impala_server()->KillQuery(
278 query_id, request->requesting_user(), request->is_admin());
279 RespondAndReleaseRpc(vector{status}, response, rpc_context);
280}
281}

Callers

nothing calls this directly

Calls 2

ProtoToQueryIdFunction · 0.85
impala_serverMethod · 0.45

Tested by

no test coverage detected