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

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


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new ed56e84b315 branch-2.1: [fix](system) fix alter system modify hostname 
with valid ip exception #49551 (#49561)
ed56e84b315 is described below

commit ed56e84b31514685a05a09553f2f4a3539a86ccc
Author: yujun <[email protected]>
AuthorDate: Thu Mar 27 19:49:27 2025 +0800

    branch-2.1: [fix](system) fix alter system modify hostname with valid ip 
exception #49551 (#49561)
    
    cherry pick from #49551
---
 .../main/java/org/apache/doris/analysis/ModifyNodeHostNameClause.java   | 2 --
 1 file changed, 2 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/analysis/ModifyNodeHostNameClause.java
 
b/fe/fe-core/src/main/java/org/apache/doris/analysis/ModifyNodeHostNameClause.java
index 6a34e91b7e1..4989ec11475 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/analysis/ModifyNodeHostNameClause.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/analysis/ModifyNodeHostNameClause.java
@@ -64,8 +64,6 @@ public class ModifyNodeHostNameClause extends AlterClause {
                 // if no IP address for the host could be found, 'getByName'
                 // will throw UnknownHostException
                 InetAddress.getByName(newHost);
-            } else {
-                throw new AnalysisException("Invalid hostname: " + newHost);
             }
         } catch (UnknownHostException e) {
             throw new AnalysisException("Unknown hostname:  " + 
e.getMessage());


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

Reply via email to