## What is the purpose of the change

There are test-order dependencies in org.apache.dubbo.rpc.cluster.StickyTest. 
testStickyNoCheck fails when run after testStickyForceCheck. The tests depend 
on the same LoadBalance instance, which enters a different state after 
testStickyForceCheck runs, which then results in testStickNoCheck to fail when 
it runs.

The proposed fix introduces a method in ExtensionLoader to reset cached 
ExtensionLoader instances, for testing purposes only. StickyTest can then use 
this method to reset the ExtensionLoader for LoadBalance between test runs.

## Brief changelog

dubbo-cluster/src/test/java/org/apache/dubbo/rpc/cluster/StickyTest.java
dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java


[ Full content available at: 
https://github.com/apache/incubator-dubbo/pull/2807 ]
This message was relayed via gitbox.apache.org for 
[email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to