canal
canal copied to clipboard
fixed MQ serverMode lost default topic
尊敬的作者您好,MQ模式启动触发以下场景问题。”默认topic和动态topic同时存在,指定需同步的数据库.数据表走指定的动态topic,未指定的数据库.数据表统一走默认topic“,结果经过源码DEBUG发现只要动态topic存在会把topic字符串中所有的”.“替换成”_“导致默认topic丢失。
配置:
修改前输出日志:
我的建议是动态topic与默认topic匹配直接返回默认topic。
修改后代码:
修改后输出日志:
希望得到采纳,感谢。
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
52CL seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.
default也需要统一采用转义处理,避免不同MQ之间的差异
default也需要统一采用转义处理,避免不同MQ之间的差异
好的。虽然四个MQ我都改了,但保持原样我认为也没问题。