From d5903994b9ad460c39b913fe956d8655e2e4da2f Mon Sep 17 00:00:00 2001 From: 924060929 <924060929@qq.com> Date: Tue, 26 Mar 2024 11:29:56 +0800 Subject: [PATCH] fix compile --- .../java/org/apache/doris/cloud/rpc/MetaServiceProxy.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/cloud/rpc/MetaServiceProxy.java b/fe/fe-core/src/main/java/org/apache/doris/cloud/rpc/MetaServiceProxy.java index 680189d4d276f21..ccdb8006bb73d42 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/cloud/rpc/MetaServiceProxy.java +++ b/fe/fe-core/src/main/java/org/apache/doris/cloud/rpc/MetaServiceProxy.java @@ -446,15 +446,11 @@ public Cloud.AlterObjStoreInfoResponse alterObjStoreInfo(Cloud.AlterObjStoreInfo public Cloud.GetRLTaskCommitAttachResponse getRLTaskCommitAttach(Cloud.GetRLTaskCommitAttachRequest request) throws RpcException { - if (metaServiceHostPort == null) { - throw new RpcException("", "cloud mode, please configure cloud_unique_id and meta_service_endpoint"); - } - TNetworkAddress metaAddress = new TNetworkAddress(metaServiceHostPort.first, metaServiceHostPort.second); try { - final MetaServiceClient client = getProxy(metaAddress); + final MetaServiceClient client = getProxy(); return client.getRLTaskCommitAttach(request); } catch (Exception e) { - throw new RpcException(metaAddress.hostname, e.getMessage(), e); + throw new RpcException("", e.getMessage(), e); } } }