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

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new a452db35da [improvement](filecache)Change the hash field of the 
backend (#17499)
a452db35da is described below

commit a452db35dacd9503b20cd48b5c913e4e6b723e05
Author: zhangdong <493738...@qq.com>
AuthorDate: Sun Mar 12 20:04:25 2023 +0800

    [improvement](filecache)Change the hash field of the backend (#17499)
    
    ip of backend may change
    use id as a hash field
---
 fe/fe-core/src/main/java/org/apache/doris/qe/Coordinator.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/Coordinator.java 
b/fe/fe-core/src/main/java/org/apache/doris/qe/Coordinator.java
index 3ffade3aeb..d35bcec8c0 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/Coordinator.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/Coordinator.java
@@ -267,8 +267,7 @@ public class Coordinator {
     private static class BackendHash implements Funnel<Backend> {
         @Override
         public void funnel(Backend backend, PrimitiveSink primitiveSink) {
-            
primitiveSink.putBytes(backend.getIp().getBytes(StandardCharsets.UTF_8));
-            primitiveSink.putInt(backend.getBePort());
+            primitiveSink.putLong(backend.getId());
         }
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to