Skip to content

Commit

Permalink
[fix](cloud) fix the issue that FE's periodic reconnection to MS RPC …
Browse files Browse the repository at this point in the history
…is ineffective (apache#40661)
  • Loading branch information
luwei16 committed Sep 11, 2024
1 parent 4f1d566 commit c8b5386
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private MetaServiceClient getProxy() {

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;
}

Expand All @@ -126,7 +126,7 @@ private MetaServiceClient getProxy() {
removedClient = service;
service = null;
}
if (service != null && !service.isConnectionAgeExpired()) {
if (service != null && service.isConnectionAgeExpired()) {
serviceMap.remove(address);
removedClient = service;
service = null;
Expand Down

0 comments on commit c8b5386

Please sign in to comment.