|
|
|
@ -77,7 +77,7 @@ public class PolarisLoadBalancer extends DynamicServerListLoadBalancer<Server> {
|
|
|
|
|
@Override
|
|
|
|
|
public List<Server> getReachableServers() {
|
|
|
|
|
// Get servers first from the thread context
|
|
|
|
|
if (!CollectionUtils.isEmpty(THREAD_CACHE_SERVERS.get())) {
|
|
|
|
|
if (THREAD_CACHE_SERVERS.get() != null) {
|
|
|
|
|
return THREAD_CACHE_SERVERS.get();
|
|
|
|
|
}
|
|
|
|
|
return getReachableServersWithoutCache();
|
|
|
|
|