alibaba / canal

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

/otter/canal/destinations/${instance}/1001/cursor中的identity.slaveId总是-1? #5300

Open dyrnq opened 1 month ago

dyrnq commented 1 month ago

Question

Q1

/otter/canal/destinations/${instance}/1001/cursor中的identity.slaveId总是-1?

{
"@type": "com.alibaba.otter.canal.protocol.position.LogPosition",
"identity": {
"slaveId": -1,
"sourceAddress": {
"address": "main-db5",
"port": 3306
}
},
"postion": {
"gtid": "",
"included": false,
"journalName": "mysql-bin.000003",
"position": 1790,
"serverId": 1,
"timestamp": 1729425993000
}
}