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

Method GetAdmissionServiceAddress

be/src/runtime/exec-env.cc:709–720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

707}
708
709Status ExecEnv::GetAdmissionServiceAddress(
710 NetworkAddressPB& admission_service_address) const {
711 if (AdmissionServiceEnabled()) {
712 IpAddr ip;
713 RETURN_IF_ERROR(HostnameToIpAddr(FLAGS_admission_service_host, &ip));
714 // TODO: get BackendId of admissiond in global admission control mode.
715 // Use admissiond's IP address as unique ID for UDS now.
716 admission_service_address = MakeNetworkAddressPB(
717 ip, FLAGS_admission_service_port, UdsAddressUniqueIdPB::IP_ADDRESS);
718 }
719 return Status::OK();
720}
721
722void ExecEnv::UpdateActiveCatalogd(bool is_registration_reply,
723 int64 active_catalogd_version, const TCatalogRegistration& catalogd_registration) {

Callers 1

GetProxyMethod · 0.80

Calls 3

HostnameToIpAddrFunction · 0.85
MakeNetworkAddressPBFunction · 0.85
OKFunction · 0.85

Tested by

no test coverage detected