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

Method IsBackendInExecutorGroups

be/src/scheduling/cluster-membership-mgr.cc:738–746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

736}
737
738bool ClusterMembershipMgr::IsBackendInExecutorGroups(
739 const BackendDescriptorPB& be_desc, const ExecutorGroups& executor_groups) {
740 for (const auto& executor_group : executor_groups) {
741 if (executor_group.second.LookUpBackendDesc(be_desc.address()) != nullptr) {
742 return true;
743 }
744 }
745 return false;
746}
747
748/// For the default executor group, we assume that local reads are preferred and will
749/// include the hostnames and IP addresses in the update to the frontend. For non-default

Callers

nothing calls this directly

Calls 1

LookUpBackendDescMethod · 0.80

Tested by

no test coverage detected