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

   <!-- 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: 3.1.4
   * Operating System version: mac os
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   
   1. 在使用 dubbo 3.x 的时候,如果设置了 类似 `System.setProperty("dubbo.service.version", 
"TEST");` 的系统属性,那么就会覆盖(因为dubbo 
只能中引入了属性覆盖机制)`org.apache.dubbo.metadata.MetadataService` 的版本,如下图:
   <img width="710" alt="image" 
src="https://user-images.githubusercontent.com/6828647/216927841-87f218e4-2dd1-4eab-b5c3-56c75454a6fb.png";>
   默认版本是1.0.0
   
   2. 那么在进行MetadataService服务调用的时候就会找不到1.0.0 
的版本,导致出错。出错代码在`org.apache.dubbo.remoting.transport.CodecSupport#checkSerialization`
 中
   
   我想到的解决方案,在进行服务版本的覆写的时候,跳过 MetadataService 服务。如果 MetadataService 
的本版被修改了,如果后续对MetadataService进行一版本的升级,可能存在问题。
   
   复现的项目地址 https://github.com/web1992/demo-dubbo-3x
   


-- 
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-unsubscr...@dubbo.apache.org.apache.org

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


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

Reply via email to