This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new 5d6e4cd0282 branch-4.0: [fix](cloud) fix wrong private endpoint when 
only configured port number #57429 (#57676)
5d6e4cd0282 is described below

commit 5d6e4cd02822e63f38a747af5ba6420dc15c227e
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Nov 5 00:38:05 2025 +0800

    branch-4.0: [fix](cloud) fix wrong private endpoint when only configured 
port number #57429 (#57676)
    
    Cherry-picked from #57429
    
    Co-authored-by: Xin Liao <[email protected]>
---
 fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/LoadAction.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/LoadAction.java 
b/fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/LoadAction.java
index 17ad9ee1c28..4f4f2d73e3e 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/LoadAction.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/LoadAction.java
@@ -561,7 +561,8 @@ public class LoadAction extends RestBaseController {
                     && publicHostPort != null && 
reqHost.equalsIgnoreCase(publicHostPort.first)) {
                 return new TNetworkAddress(publicHostPort.first, 
publicHostPort.second);
             } else if (privateHostPort != null) {
-                return new TNetworkAddress(privateHostPort.first, 
privateHostPort.second);
+                // use request host here, because private endpoint may be 
unknown for cloud mode
+                return new TNetworkAddress(reqHost, privateHostPort.second);
             } else {
                 return new TNetworkAddress(backend.getHost(), 
backend.getHttpPort());
             }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to