OIiveirra commented on code in PR #68585:
URL: https://github.com/apache/doris/pull/68585#discussion_r4140472532


##########
fe/fe-filesystem/fe-filesystem-hdfs-base/src/main/java/org/apache/doris/filesystem/hdfs/properties/HdfsPropertiesUtils.java:
##########
@@ -218,10 +218,14 @@ public static void checkHaConfig(Map<String, String> 
hdfsProperties) {
             // No nameservice configured => HA is not enabled, nothing to 
validate
             return;
         }
-        for (String dfsservice : splitAndTrim(dfsNameservices)) {
-            if (dfsservice.isEmpty()) {
-                continue;
-            }
+        if (Arrays.stream(dfsNameservices.split(",", 
-1)).anyMatch(StringUtils::isBlank)) {

Review Comment:
   Fixed in commit `138785c9808`. Runtime HDFS binding now tolerates persisted 
empty nameservice token lists such as `dfs.nameservices=,` or whitespace, 
preserving replay compatibility. New HMS CREATE/ALTER statements still reject 
explicitly supplied empty values before storage binding. `HdfsPropertiesTest` 
passes 11/11.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to