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

Method DoTestSyncCall

be/src/kudu/rpc/rpc-test-base.h:473–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471 }
472
473 static Status DoTestSyncCall(Proxy* p, const std::string& method,
474 CredentialsPolicy policy = CredentialsPolicy::ANY_CREDENTIALS) {
475 AddRequestPB req;
476 req.set_x(rand());
477 req.set_y(rand());
478 AddResponsePB resp;
479 RpcController controller;
480 controller.set_timeout(MonoDelta::FromMilliseconds(10000));
481 controller.set_credentials_policy(policy);
482 RETURN_NOT_OK(p->SyncRequest(method, req, &resp, &controller));
483
484 CHECK_EQ(req.x() + req.y(), resp.result());
485 return Status::OK();
486 }
487
488static void DoTestSidecar(Proxy* p, int size1, int size2) {
489 const uint32_t kSeed = 12345;

Callers

nothing calls this directly

Calls 5

OKFunction · 0.85
SyncRequestMethod · 0.80
set_timeoutMethod · 0.45
resultMethod · 0.45

Tested by

no test coverage detected