alibaba / canal

阿里巴巴 MySQL binlog 增量订阅&消费组件
Apache License 2.0
28.55k stars 7.62k forks source link

ClientAdapter1.1.7版本支持mysql8.0binlog 配置为mixed格式的日志同步到es7么? #5315

Closed tianfengLiang closed 2 weeks ago

tianfengLiang commented 2 weeks ago

Question

adapter日志文件打印如下: 2024-11-08 10:17:48.456 [pool-3-thread-1] DEBUG c.a.o.canal.client.adapter.es.core.service.ESSyncService - DML: {"data":null,"database":"test","destination":"search","es":17310322681111,"groupId":"g1","isDdl":false,"old":null,"pkNames":[],"sql":"UPDATE kl_doc SET view_count = view_count + 1 WHERE del_flag = '0' AND (id = 86)","table":"starms_kl_doc","ts":1731032268456,"type":"UPDATE"} Affected indexes: kl_doc 其中data字段为空,没捕捉到变动,所以es没更新么,是不是必须把binlog格式修改为row