| 371 | } |
| 372 | |
| 373 | Status CatalogOpExecutor::GetCatalogObject(const TCatalogObject& object_desc, |
| 374 | TCatalogObject* result) { |
| 375 | TGetCatalogObjectRequest request; |
| 376 | request.__set_object_desc(object_desc); |
| 377 | |
| 378 | TGetCatalogObjectResponse response; |
| 379 | int attempt = 0; // Used for debug action only. |
| 380 | CatalogServiceConnection::RpcStatus rpc_status = |
| 381 | CatalogServiceConnection::DoRpcWithRetry(env_->catalogd_client_cache(), |
| 382 | *ExecEnv::GetInstance()->GetCatalogdAddress().get(), |
| 383 | &CatalogServiceClientWrapper::GetCatalogObject, request, |
| 384 | FLAGS_catalog_client_connection_num_retries, |
| 385 | FLAGS_catalog_client_rpc_retry_interval_ms, |
| 386 | [&attempt]() { return CatalogRpcDebugFn(&attempt); }, &response); |
| 387 | RETURN_IF_ERROR(rpc_status.status); |
| 388 | *result = response.catalog_object; |
| 389 | return Status::OK(); |
| 390 | } |
| 391 | |
| 392 | Status CatalogOpExecutor::GetPartialCatalogObject( |
| 393 | const TGetPartialCatalogObjectRequest& req, |
no test coverage detected