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

Method CancelQueriesForFailedCoordinators

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

Source from the content-addressed store, hash-verified

274}
275
276void QueryExecMgr::CancelQueriesForFailedCoordinators(
277 const unordered_set<BackendIdPB>& current_membership) {
278 vector<QueryCancellationTask> to_cancel;
279 CollectQueriesToCancel(
280 [&](QueryState* qs) {
281 return current_membership.find(qs->GetCoordinatorBackendId())
282 == current_membership.end();
283 },
284 false /* is_coord_active */, &to_cancel);
285 ProcessCancelQueries(to_cancel, true /* handle_full_queue */);
286}
287
288bool QueryExecMgr::CancelQueriesForGracefulShutdown() {
289 vector<QueryCancellationTask> to_cancel;

Callers 1

SetImpalaServerMethod · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected