Skip to content
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

建议可通过配置设置VipChannelEnabled #6

Closed
Echelon77 opened this issue Jan 17, 2018 · 7 comments
Closed

建议可通过配置设置VipChannelEnabled #6

Echelon77 opened this issue Jan 17, 2018 · 7 comments
Milestone

Comments

@Echelon77
Copy link

rocketmq服务端3.2.6版本(或许其他也有类似情况),在producer和consumer连接时连接的是vip端口,导致发送、启动失败;建议在MQProducerAutoConfiguration 和MQConsumerAutoConfiguration中对producer和consumer进行配置参数读取并设置VipChannelEnabled的,以便通过配置即可对低版本服务端的支持

@Echelon77
Copy link
Author

搞定!
可以在JVM里设置参数-Dcom.rocketmq.sendMessageWithVIPChannel=false来解决
看了下maven的dependency:tree,该项目依赖rocketmq 4.0,还无法替换成低版本3.x;原因是3.x包名是alibaba捐献前的,4.x是apache的。
但最好还是能提供一个设置VipChannelEnabled的配置参数比较好

@suclogger
Copy link
Member

配置已经添加,请更新版本到 0.0.6

@suclogger suclogger added this to the 0.0.6 milestone Jan 30, 2018
@xuli1266
Copy link

xuli1266 commented Feb 1, 2018

MQProducerAutoConfiguration中已经添加,但是MQConsumerAutoConfiguration.publishConsumer中还是没有加上vip参数.
0.0.6版本consumer jvm参数中依然添加-Dcom.rocketmq.sendMessageWithVIPChannel=false来解决

@suclogger
Copy link
Member

@xuli1266
感谢反馈,确实遗漏了,我推送了新的代码,可以帮忙review一下吗 #8aa7e391

@suclogger suclogger reopened this Feb 2, 2018
@suclogger suclogger modified the milestones: 0.0.6, 0.0.7 Feb 2, 2018
@xuli1266
Copy link

xuli1266 commented Feb 2, 2018

0.0.7已经可以了

@ijaychang
Copy link

VipChannelEnabled还没用到过。。。

@suclogger
Copy link
Member

@jaychang9 3.5.8版本以后是默认启用的,这个配置项是为了兼容老版本。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants