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/12/05 07:43:58 UTC

[GitHub] [dubbo] AlbumenJ commented on pull request #11068: Fix triple default version

AlbumenJ commented on PR #11068:
URL: https://github.com/apache/dubbo/pull/11068#issuecomment-1336882575

   If we treat `null` and `1.0.0` the same, it will cause a lot of serious problems.
   
   Case 1: 
   Provider export a service which version is `1.0.0`. 
   Consumer consumes `null`. 
   Invocation will be invoked in the service of `1.0.0` version. In Dubbo protocol, this will throw no service found exception. BTW, in sofa, this will throw exception too.
   
   Case 2: 
   Provider export a service which version is `null` and `1.0.0`. 
   Consumer consumes `null` or `1.0.0`. 
   Invocation will be invoked in one of the services of `null` and `1.0.0`. This depends on which service is export LATE. This will cause traffic to go to the WRONG service.
   
   Case 3: 
   Provider export a service which version is `null`, `1.0.0` and `2.0.0`. 
   Consumer consumes `null` or `1.0.0`. 
   Invocation will be invoked in one of the services of `null`, `1.0.0` and **`2.0.0`**. 
   
   Case 4: 
   Provider export a service which version is `2.0.0`.
    Consumer consumes `null` or `3.0.0`. 
   Invocation will be invoked in the service of **`2.0.0`** version. 
   
   Case 5: 
   Provider export a service which version is `null`, `1.0.0` and `2.0.0`. 
   Consumer consumes `null`. 
   Invocation will be invoked in **one of the services of `null`, `1.0.0` and `2.0.0`**. 
   
   Case 6: 
   Provider export a service which version is `null`, `1.0.0` and `2.0.0`. 
   Consumer consumes `3.0.0`. 
   Invocation will be invoked in **one of the services of `null`, `1.0.0` and `2.0.0`**. 
   
   Any of the above cases may lead to production accidents.


-- 
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