This is an automated email from the ASF dual-hosted git repository.
gavinchou 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 c8b5386fe60 [fix](cloud) fix the issue that FE's periodic reconnection
to MS RPC is ineffective (#40661)
c8b5386fe60 is described below
commit c8b5386fe603c6efc2bfe6d24a61253c993f27ea
Author: Luwei <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]