Hi @beiwei30 . see you again, I'm not sure it's still a problem . For tag 2.5.5
, there are three cases where loadbalance. select (@SPI) is not extensible. Why
not move it completely in the abstract method AbstractLoadBalance.select?
```java
if (invokers == null || invokers.size() == 0)
return null;
if (invokers.size() == 1)
return invokers.get(0);
// 如果只有两个invoker,退化成轮循
if (invokers.size() == 2 && selected != null && selected.size() > 0) {
return selected.get(0) == invokers.get(0) ? invokers.get(1) :
invokers.get(0);
}
Invoker<T> invoker = loadbalance.select(invokers, getUrl(), invocation);
```
[ Full content available at:
https://github.com/apache/incubator-dubbo/issues/1861 ]
This message was relayed via gitbox.apache.org for
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]