canal server 版本为 1.1.5-snapshot
canal中的instance配置文件中,配置了
mq config
canal.mq.topic=customer_info
canal.mq.partitionsNum=4
canal.mq.partitionHash=scb_customer.customer_info:sid,scb_customer.label_customer:sid
新增customer_info表一条记录
Broker | 队列 | 消费者终端 | 代理者位点 | 消费者位点 | 差值 | 上次时间
broker-a | 0 | | 2 | 0 | 2 | 2020-12-10 22:34:24
broker-a | 1 | | 2 | 0 | 2 | 1970-01-01 08:00:00
broker-a | 2 | | 2 | 0 | 2 | 1970-01-01 08:00:00
broker-a | 3 | | 2 | 0 | 2 | 1970-01-01 08:00:00
上面的4个队列 都增加了消息;;;每新增一条记录,4个队列都插入消息
也就是会产生4个消息(只有1个消息的消息body里面的内容是正确的;其他3个消息 MessageBody 为 null )