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

Method GetNextInstanceId

be/src/runtime/data-stream-test.cc:366–374  ·  view source on GitHub ↗

Create an instance id and add it to dest_

Source from the content-addressed store, hash-verified

364
365 // Create an instance id and add it to dest_
366 void GetNextInstanceId(TUniqueId* instance_id) {
367 PlanFragmentDestinationPB* dest = dest_.Add();
368 *dest->mutable_fragment_instance_id() = next_instance_id_;
369 *dest->mutable_address() = MakeNetworkAddressPB("localhost", FLAGS_port, backend_id_,
370 exec_env_->rpc_mgr()->GetUdsAddressUniqueId());
371 *dest->mutable_krpc_backend() = krpc_address_;
372 UniqueIdPBToTUniqueId(next_instance_id_, instance_id);
373 next_instance_id_.set_lo(next_instance_id_.lo() + 1);
374 }
375
376 // RowDescriptor to mimic "select bigint_col from alltypesagg", except the slot
377 // isn't nullable

Callers

nothing calls this directly

Calls 4

MakeNetworkAddressPBFunction · 0.85
UniqueIdPBToTUniqueIdFunction · 0.85
AddMethod · 0.45
rpc_mgrMethod · 0.45

Tested by

no test coverage detected