Skip to content

Commit

Permalink
Add fallback logic in getLoadBalancedServiceProperties and getLoadBal…
Browse files Browse the repository at this point in the history
…ancedClusterAndUriProperties
  • Loading branch information
brycezhongqing committed Nov 13, 2023
1 parent 648e7ff commit 7efca5f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public void getLoadBalancedServiceProperties(String serviceName, Callback<Servic
_newLb.getLoadBalancedServiceProperties(serviceName, clientCallback);
break;
case DUAL_READ:
_newLb.getLoadBalancedServiceProperties(serviceName, Callbacks.empty());
getLoadBalancerThreadPool().execute(() -> _newLb.getLoadBalancedServiceProperties(serviceName, Callbacks.empty()));
_oldLb.getLoadBalancedServiceProperties(serviceName, clientCallback);
break;
case OLD_LB_ONLY:
Expand All @@ -172,7 +172,7 @@ public void getLoadBalancedClusterAndUriProperties(String clusterName,
_newLb.getLoadBalancedClusterAndUriProperties(clusterName, callback);
break;
case DUAL_READ:
_newLb.getLoadBalancedClusterAndUriProperties(clusterName, Callbacks.empty());
getLoadBalancerThreadPool().execute(() -> _newLb.getLoadBalancedClusterAndUriProperties(clusterName, Callbacks.empty()));
_oldLb.getLoadBalancedClusterAndUriProperties(clusterName, callback);
break;
case OLD_LB_ONLY:
Expand Down

0 comments on commit 7efca5f

Please sign in to comment.