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

Method SendEosAsync

be/src/runtime/krpc-data-stream-sender.cc:697–710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

695}
696
697Status KrpcDataStreamSender::Channel::SendEosAsync() {
698 {
699 std::unique_lock<SpinLock> l(lock_);
700 DCHECK(!rpc_in_flight_);
701 DCHECK(rpc_status_.ok());
702 if (UNLIKELY(remote_recvr_closed_)) return Status::OK();
703 VLOG_RPC << "calling EndDataStream() to terminate channel. fragment_instance_id="
704 << PrintId(fragment_instance_id_);
705 rpc_in_flight_ = true;
706 COUNTER_ADD(parent_->eos_sent_counter_, 1);
707 RETURN_IF_ERROR(DoEndDataStreamRpc());
708 }
709 return Status::OK();
710}
711
712void KrpcDataStreamSender::Channel::Teardown(RuntimeState* state) {
713 // Normally, the channel should have been flushed before calling Teardown(), which means

Callers 1

FlushFinalMethod · 0.80

Calls 3

OKFunction · 0.85
PrintIdFunction · 0.85
okMethod · 0.45

Tested by

no test coverage detected