| 1368 | } |
| 1369 | |
| 1370 | void 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 | |
| 1391 | void ImpalaServer::GetExecutorMembership( |
| 1392 | TGetExecutorMembershipResp& return_val, const TGetExecutorMembershipReq& req) { |