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

Method GetBackendConfig

be/src/service/impala-hs2-server.cc:1370–1389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1368}
1369
1370void ImpalaServer::GetBackendConfig(TGetBackendConfigResp& return_val,
1371 const TGetBackendConfigReq& req) {
1372 VLOG_QUERY << "GetBackendConfig(): req=" << RedactedDebugString(req);
1373 const ThriftServer::ConnectionContext* connection_context =
1374 ThriftServer::GetThreadConnectionContext();
1375 if (connection_context->server_name != EXTERNAL_FRONTEND_SERVER_NAME) {
1376 HS2_RETURN_ERROR(return_val, "Unsupported operation",
1377 SQLSTATE_OPTIONAL_FEATURE_NOT_IMPLEMENTED);
1378 }
1379 TUniqueId session_id;
1380 TUniqueId secret;
1381 HS2_RETURN_IF_ERROR(return_val, THandleIdentifierToTUniqueId(
1382 req.sessionHandle.sessionId, &session_id, &secret), SQLSTATE_GENERAL_ERROR);
1383 HS2_RETURN_IF_ERROR(return_val,
1384 PopulateThriftBackendGflags(return_val.backend_config),
1385 SQLSTATE_GENERAL_ERROR);
1386
1387 return_val.status.__set_statusCode(thrift::TStatusCode::SUCCESS_STATUS);
1388 VLOG_RPC << "GetBackendConfig(): return_val=" << ThriftDebugString(return_val);
1389}
1390
1391void ImpalaServer::GetExecutorMembership(
1392 TGetExecutorMembershipResp& return_val, const TGetExecutorMembershipReq& req) {

Callers 1

Calls 3

RedactedDebugStringFunction · 0.85
ThriftDebugStringFunction · 0.85

Tested by 1