wegod opened a new issue, #11644:
URL: https://github.com/apache/dubbo/issues/11644

   <!-- If you need to report a security issue please visit 
https://github.com/apache/dubbo/security/policy -->
   
   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) 
of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: xxx
   * Operating System version: xxx
   * Java version: xxx
   
   ### Steps to reproduce this issue
   
   1. 在2.6.x的基础服务中创建一个LoadBalance
   2. 在2.7.x的服务中引用这个LoadBalance
   3. 
如在2.7.20中,com.alibaba.dubbo.rpc.cluster.LoadBalance会转成compatible的类去寻找Invoker
   4. 
但是在FailoverClusterInvoker的invoker.invoke(invocation)时,没有对invocation进行compatible转换,导致调用了com.alibaba.dubbo.rpc.Invoker的default
 invoke方法return了null
   5. 
导致AbstractCluster的asyncResult为null,asyncResult.whenCompleteWithContext调用时抛了空指针
   
   ### Expected Behavior
   
   既然兼容了2.6.x版本的LoadBalance寻找Invoker,就应该兼容invoker去执行invoke操作
   如在2.7.x的CompatibleInvoker中增加兼容Invocation处理
   @Override
   public Result invoke(org.apache.dubbo.rpc.Invocation invocation) {
       return invoke(new 
com.alibaba.dubbo.rpc.Invocation.CompatibleInvocation(invocation));
   }
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to