为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
- 【TiDB 版本】:v4.0.6
- 【问题描述】:
TICDC 使用配置文件起同步任务到 下游mysql,mysql始终没有数据,日志的报错如下,我要同步的是 cleaner这个数据库的所有表,谢谢~
[tidb@r-tidb4cleaner-TiFlash-m220-238 conf]$ cat changefeed.toml
case-sensitive = true
enable-old-value = false
[filter]
#ignore-txn-start-ts = [1, 2]
rules = ['\*.\*', '!test.*']
[mounter]
worker-num = 16
[sink]
protocol = "default"
[cyclic-replication]
enable = false
replica-id = 1
filter-replica-ids = [2,3]
sync-ddl = true
#创建任务:
../bin/cdc cli changefeed create --pd=http://10.105.130.102:2379 --sink-uri="mysql://cdc_dist:cdc_dist@10.110.9.218:6306/" --config changefeed.toml --changefeed-id="test-to-10-110-9-218-6"
Create changefeed successfully!
ID: test-to-10-110-9-218-6
Info: {"sink-uri":"mysql://cdc_dist:cdc_dist@10.110.9.218:6306/","opts":{},"create-time":"2020-09-21T14:52:07.727026086+08:00","start-ts":419606332104769537,"target-ts":0,"admin-job-type":0,"sort-engine":"memory","sort-dir":".","config":{"case-sensitive":true,"enable-old-value":false,"filter":{"rules":["*.*","!test.*"],"ignore-txn-start-ts":null,"ddl-allow-list":null},"mounter":{"worker-num":16},"sink":{"dispatchers":null,"protocol":"default"},"cyclic-replication":{"enable":false,"replica-id":1,"filter-replica-ids":[2,3],"id-buckets":0,"sync-ddl":true},"scheduler":{"type":"table-number","polling-time":-1}},"state":"normal","history":null,"error":null}
#查询任务:
[tidb@r-tidb4cleaner-TiFlash-m220-238 conf]$ ../bin/cdc cli changefeed query -s --pd=http://10.105.130.102:2379 -c test-to-10-110-9-218-6
{
"state": "normal",
"tso": 0,
"checkpoint": "",
"error": null
}
#查看日志一直报:
[2020/09/21 14:41:07.399 +08:00] [WARN] [processor.go:916] ["Ignore existing table"] [ID=2678]
[2020/09/21 14:41:07.449 +08:00] [WARN] [processor.go:916] ["Ignore existing table"] [ID=2678]
[2020/09/21 14:41:07.499 +08:00] [WARN] [processor.go:916] ["Ignore existing table"] [ID=2678]
[2020/09/21 14:41:07.549 +08:00] [WARN] [processor.go:916] ["Ignore existing table"] [ID=2678]
[2020/09/21 14:41:07.599 +08:00] [WARN] [processor.go:916] ["Ignore existing table"] [ID=2678]
[2020/09/21 14:41:07.649 +08:00] [WARN] [processor.go:916] ["Ignore existing table"] [ID=2678]
[2020/09/21 14:41:07.655 +08:00] [WARN] [processor.go:916] ["Ignore existing table"] [ID=2678]
#详细信息如下:
[tidb@r-tidb4cleaner-TiFlash-m220-238 conf]$ ../bin/cdc cli changefeed query --pd=http://10.105.130.102:2379 -c test-to-10-110-9-218-6
{
"info": {
"sink-uri": "mysql://cdc_dist:cdc_dist@10.110.9.218:6306/",
"opts": {},
"create-time": "2020-09-21T14:55:55.47812296+08:00",
"start-ts": 419606391808065537,
"target-ts": 0,
"admin-job-type": 0,
"sort-engine": "memory",
"sort-dir": ".",
"config": {
"case-sensitive": true,
"enable-old-value": false,
"filter": {
"rules": [
"*.*",
"!test.*"
],
"ignore-txn-start-ts": null,
"ddl-allow-list": null
},
"mounter": {
"worker-num": 16
},
"sink": {
"dispatchers": null,
"protocol": "default"
},
"cyclic-replication": {
"enable": false,
"replica-id": 1,
"filter-replica-ids": [
2,
3
],
"id-buckets": 0,
"sync-ddl": true
},
"scheduler": {
"type": "table-number",
"polling-time": -1
}
},
"state": "normal",
"history": null,
"error": null
},
"status": {
"resolved-ts": 419606391808065537,
"checkpoint-ts": 419606391808065537,
"admin-job-type": 0
},
"count": 0,
"task-status": [
{
"capture-id": "8e8ce1be-6133-449c-8621-107176cdb23c",
"status": {
"tables": {
"2656": {
"start-ts": 419606391808065537,
"mark-table-id": 0
},
"2666": {
"start-ts": 419606391808065537,
"mark-table-id": 0
},
"2668": {
"start-ts": 419606391808065537,
"mark-table-id": 0
},
"2676": {
"start-ts": 419606391808065537,
"mark-table-id": 0
},
"2680": {
"start-ts": 419606391808065537,
"mark-table-id": 0
},
"2684": {
"start-ts": 419606391808065537,
"mark-table-id": 0
},
"2686": {
"start-ts": 419606391808065537,
"mark-table-id": 0
}
},
"operation": {
"2656": {
"delete": false,
"boundary_ts": 419606391808065537,
"done": true
},
"2666": {
"delete": false,
"boundary_ts": 419606391808065537,
"done": true
},
"2668": {
"delete": false,
"boundary_ts": 419606391808065537,
"done": false
},
"2676": {
"delete": false,
"boundary_ts": 419606391808065537,
"done": true
},
"2680": {
"delete": false,
"boundary_ts": 419606391808065537,
"done": true
},
"2684": {
"delete": false,
"boundary_ts": 419606391808065537,
"done": true
},
"2686": {
"delete": false,
"boundary_ts": 419606391808065537,
"done": true
}
},
"admin-job-type": 0
}
},
{
"capture-id": "fef76f98-d46d-4b44-ab60-4662361973d9",
"status": {
"tables": {
"2658": {
"start-ts": 419606391808065537,
"mark-table-id": 0
},
"2662": {
"start-ts": 419606391808065537,
"mark-table-id": 0
},
"2664": {
"start-ts": 419606391808065537,
"mark-table-id": 0
},
"2670": {
"start-ts": 419606391808065537,
"mark-table-id": 0
},
"2672": {
"start-ts": 419606391808065537,
"mark-table-id": 0
},
"2674": {
"start-ts": 419606391808065537,
"mark-table-id": 0
},
"2678": {
"start-ts": 419606391808065537,
"mark-table-id": 0
},
"2682": {
"start-ts": 419606391808065537,
"mark-table-id": 0
}
},
"operation": {
"2658": {
"delete": false,
"boundary_ts": 419606391808065537,
"done": true
},
"2662": {
"delete": false,
"boundary_ts": 419606391808065537,
"done": true
},
"2664": {
"delete": false,
"boundary_ts": 419606391808065537,
"done": true
},
"2670": {
"delete": false,
"boundary_ts": 419606391808065537,
"done": true
},
"2672": {
"delete": false,
"boundary_ts": 419606391808065537,
"done": true
},
"2674": {
"delete": false,
"boundary_ts": 419606391808065537,
"done": true
},
"2678": {
"delete": false,
"boundary_ts": 419606391808065537,
"done": false
},
"2682": {
"delete": false,
"boundary_ts": 419606391808065537,
"done": true
}
},
"admin-job-type": 0
}
}
]
}