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

Method RespondRpc

be/src/service/data-stream-service.cc:214–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212
213template<typename ResponsePBType>
214void DataStreamService::RespondRpc(const Status& status,
215 ResponsePBType* response, kudu::rpc::RpcContext* ctx) {
216 MonoDelta duration(MonoTime::Now() - ctx->GetTimeReceived());
217 StatusToProto(status, response->mutable_status());
218 response->set_receiver_latency_ns(duration.ToNanoseconds());
219 ctx->RespondSuccess();
220}
221
222template<typename ResponsePBType>
223void DataStreamService::RespondAndReleaseRpc(const Status& status,

Callers

nothing calls this directly

Calls 4

StatusToProtoFunction · 0.85
ToNanosecondsMethod · 0.80
GetTimeReceivedMethod · 0.45
RespondSuccessMethod · 0.45

Tested by

no test coverage detected