You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ga...@apache.org on 2024/09/12 04:10:22 UTC
(doris) branch branch-3.0 updated: [fix](cloud) fix the issue that FE's periodic reconnection to MS RPC is ineffective (#40661)
This is an automated email from the ASF dual-hosted git repository.
gavinchou pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new ce8cfe14b5a [fix](cloud) fix the issue that FE's periodic reconnection to MS RPC is ineffective (#40661)
ce8cfe14b5a is described below
commit ce8cfe14b5ab9d56d89aca8a301b374634617026
Author: Luwei <81...@qq.com>
AuthorDate: Wed Sep 11 23:06:33 2024 +0800
[fix](cloud) fix the issue that FE's periodic reconnection to MS RPC is ineffective (#40661)
---
.../src/main/java/org/apache/doris/cloud/rpc/MetaServiceProxy.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/cloud/rpc/MetaServiceProxy.java b/fe/fe-core/src/main/java/org/apache/doris/cloud/rpc/MetaServiceProxy.java
index 7d47ec70c1b..33a4d81feaa 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/cloud/rpc/MetaServiceProxy.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/cloud/rpc/MetaServiceProxy.java
@@ -107,7 +107,7 @@ public class MetaServiceProxy {
String address = Config.meta_service_endpoint;
MetaServiceClient service = serviceMap.get(address);
- if (service != null && service.isNormalState()) {
+ if (service != null && service.isNormalState() && !service.isConnectionAgeExpired()) {
return service;
}
@@ -126,7 +126,7 @@ public class MetaServiceProxy {
removedClient = service;
service = null;
}
- if (service != null && !service.isConnectionAgeExpired()) {
+ if (service != null && service.isConnectionAgeExpired()) {
serviceMap.remove(address);
removedClient = service;
service = null;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org