You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/08/17 13:40:32 UTC

[GitHub] [dubbo] H-Bob opened a new issue, #10479: add a method in IDubboService may cause "Service not found" exception.

H-Bob opened a new issue, #10479:
URL: https://github.com/apache/dubbo/issues/10479

   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [X] 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: 3.0.7
   * Operating System version: macOS 12.1
   * Java version: 17
   
   ### Steps to reproduce this issue
   
   1. IDubboService has a method which named **methodA**.
   2. deploy IDubboService to **serverA**.
   3. add a method whose name is **methodB** to IDubboService in **myLocalServer** but not in serverA
   4. serverA and myLocalServer use the same register-center. 
   5. when consumer side invokes IDubboService.methodB(), both of the providers in serverA and myLocalServer can be selected. 
   6. then it will cause an exception that is "java.lang.IllegalArgumentException: Service not found:com.xxx. IDubboService, methodB" if it chose serverA as result-invoker  according to router and loadbalance rules.
   
   
   ### Expected Behavior
   
   <!-- What do you expect from the above steps?-->
   The expected behavior is that it only chose myLocalServer who has methodB as provider or result-invoker. 
   
   ### Actual Behavior
   
   <!-- What actually happens? -->
   
   exception trace is here:
   
   ```
   java.lang.IllegalArgumentException: Service not found:com.garena.core.logic.rpcservice.login.server.ILoginServerService, ping2
   	at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:205)
   	at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:93)
   	at org.apache.dubbo.remoting.transport.DecodeHandler.decode(DecodeHandler.java:57)
   	at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:44)
   	at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57)
   	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
   	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
   	at org.apache.dubbo.common.threadlocal.InternalRunnable.run(InternalRunnable.java:41)
   	at java.base/java.lang.Thread.run(Thread.java:833)
   ```
   
   I am confused that whether it is designed to be this or it is a bug. If it should be this, can anybody tell me why?


-- 
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: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] H-Bob commented on issue #10479: adding a method in IDubboService may cause "Service not found" exception.

Posted by GitBox <gi...@apache.org>.
H-Bob commented on issue #10479:
URL: https://github.com/apache/dubbo/issues/10479#issuecomment-1230126245

   > Dubbo consumers will now not check for method existence. Please try specifying another version for the service when upgrading.
   > https://dubbo.apache.org/zh/docs3-v2/java-sdk/advanced-features-and-usage/service/multi-versions/
   
   Thank you so much. I learned that Dubbo service detective can based on interface or application but not method.


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #10479: adding a method in IDubboService may cause "Service not found" exception.

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #10479:
URL: https://github.com/apache/dubbo/issues/10479#issuecomment-1220165651

   Dubbo consumers will now not check for method existence. Please try specifying another version for the service when upgrading. 
   https://dubbo.apache.org/zh/docs3-v2/java-sdk/advanced-features-and-usage/service/multi-versions/


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] H-Bob closed issue #10479: adding a method in IDubboService may cause "Service not found" exception.

Posted by GitBox <gi...@apache.org>.
H-Bob closed issue #10479: adding a method in IDubboService may cause "Service not found" exception.
URL: https://github.com/apache/dubbo/issues/10479


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org