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

Method StartWithClientServers

be/src/testutil/in-process-servers.cc:88–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88Status InProcessImpalaServer::StartWithClientServers(
89 int beeswax_port, int hs2_port, int hs2_http_port) {
90 RETURN_IF_ERROR(exec_env_->Init());
91 beeswax_port_ = beeswax_port;
92 hs2_port_ = hs2_port;
93 hs2_http_port_ = hs2_http_port;
94
95 impala_server_.reset(new ImpalaServer(exec_env_.get()));
96 SetCatalogIsReady();
97 RETURN_IF_ERROR(impala_server_->Start(beeswax_port, hs2_port, hs2_http_port_, 0));
98
99 // Wait for up to 1s for the backend server to start
100 RETURN_IF_ERROR(WaitForServer(FLAGS_hostname, krpc_port_, 10, 100));
101 return Status::OK();
102}
103
104Status InProcessImpalaServer::Join() {
105 impala_server_->Join();

Callers 1

Calls 6

WaitForServerFunction · 0.85
OKFunction · 0.85
resetMethod · 0.65
getMethod · 0.65
InitMethod · 0.45
StartMethod · 0.45

Tested by

no test coverage detected