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

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

commit a507eec1159dc751fd35f59b9c1e4a83633595bb
Author: wuwenchi <[email protected]>
AuthorDate: Tue May 28 14:05:04 2024 +0800

    [bugfix](hdfs)support default fsname in processing hash (#35113)
    
    When the hash is calculated, if there is no `fsname` specified, use the
    `fsname` in `hdfs_params`.
    
    follow: #34790
---
 be/src/io/hdfs_util.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/be/src/io/hdfs_util.cpp b/be/src/io/hdfs_util.cpp
index 42353fb481f..5e5998e9ea7 100644
--- a/be/src/io/hdfs_util.cpp
+++ b/be/src/io/hdfs_util.cpp
@@ -47,7 +47,11 @@ uint64 hdfs_hash_code(const THdfsParams& hdfs_params, const 
std::string& fs_name
     // If there is no specified fsname, the default fsname is used
     if (!fs_name.empty()) {
         hash_code ^= Fingerprint(fs_name);
-    } else if (hdfs_params.__isset.user) {
+    } else if (hdfs_params.__isset.fs_name) {
+        hash_code ^= Fingerprint(hdfs_params.fs_name);
+    }
+
+    if (hdfs_params.__isset.user) {
         hash_code ^= Fingerprint(hdfs_params.user);
     }
     if (hdfs_params.__isset.hdfs_kerberos_principal) {


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

Reply via email to