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

Method Setup

be/src/testutil/impalad-query-executor.cc:50–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50Status ImpaladQueryExecutor::Setup() {
51 client_.reset(new ThriftClient<ImpalaServiceClient>(hostname_, port_));
52 // Wait for up to 10s for the server to start, polling at 50ms intervals
53 RETURN_IF_ERROR(WaitForServer(hostname_, port_, 200, 50));
54 RETURN_IF_ERROR(client_->Open());
55 return Status::OK();
56}
57
58Status ImpaladQueryExecutor::Close() {
59 if (!query_in_progress_) return Status::OK();

Callers 2

SetUpTestCaseMethod · 0.80
TEST_PFunction · 0.80

Calls 4

WaitForServerFunction · 0.85
OKFunction · 0.85
resetMethod · 0.65
OpenMethod · 0.45

Tested by 2

SetUpTestCaseMethod · 0.64
TEST_PFunction · 0.64