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

Function SendClusterMembershipToFrontend

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

Helper method to forward cluster membership updates to the frontend. For additional details see comments for PopulateExecutorMembershipRequest() in cluster-membership-mgr.cc

Source from the content-addressed store, hash-verified

210/// For additional details see comments for PopulateExecutorMembershipRequest()
211/// in cluster-membership-mgr.cc
212void SendClusterMembershipToFrontend(const ClusterMembershipMgr::SnapshotPtr& snapshot,
213 const vector<TExecutorGroupSet>& expected_exec_group_sets, Frontend* frontend) {
214 TUpdateExecutorMembershipRequest update_req;
215
216 PopulateExecutorMembershipRequest(snapshot, expected_exec_group_sets, update_req);
217
218 Status status = frontend->UpdateExecutorMembership(update_req);
219 if (!status.ok()) {
220 LOG(WARNING) << "Error updating frontend membership snapshot: " << status.GetDetail();
221 }
222}
223}
224
225namespace impala {

Callers 1

InitMethod · 0.85

Calls 4

GetDetailMethod · 0.80
okMethod · 0.45

Tested by

no test coverage detected