-
Notifications
You must be signed in to change notification settings - Fork 26.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
一般错误级别:指定点对点直连地址的消费者,配置无法继承提供者 #2828
Comments
日志的地方是有点重复了。你可以提交一个pr修复掉。 |
@carryxyh
好吧,可能这也不算什么错误,消费者自定serialization方式也合理。至少我发现了上面两种配置又一个不同点 Q3: 是打包之后的文件,你可以在你本地的maven仓库里解压开来看,或者去仓库下载。。就是本来是一份内容的都变成3份了,比如内容是1行aaa变成3行aaa |
q1你是想说配置直连和使用zk的方式,消费者使用的序列化方式不一样是么?这个你能提供一个demo么我看一下。 q3,这个我看到了,确实重复了三遍,这个可能有问题,老版本是不会出现的。我看一下。 |
对于Q1还有问题么? |
https://github.com/apache/incubator-dubbo/blob/46b3458564cd0387d50f26f566556917cb74b999/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ReferenceConfig.java#L329
比如提供者配置了serialization=kryo,然后消费者使用直连:
@Reference(url = "dubbo://127.0.0.1:20880")
根据这段代码,消费者还是使用serialization默认的hessian2
如果是不配置走到
assemble URL from register center's configuration
里就能继承提供者的配置update: 可以添加自定义参数解决
https://github.com/apache/incubator-dubbo/blob/88037747a3b69d3225c73f6fbcda36ebd8435887/dubbo-plugin/dubbo-qos/src/main/java/com/alibaba/dubbo/qos/server/Server.java#L102
https://github.com/apache/incubator-dubbo/blob/88037747a3b69d3225c73f6fbcda36ebd8435887/dubbo-plugin/dubbo-qos/src/main/java/com/alibaba/dubbo/qos/protocol/QosProtocolWrapper.java#L101
The text was updated successfully, but these errors were encountered: