【 TiDB 使用环境】生产环境
【 TiDB 版本】v4.0.14
【复现路径】用ticdc同步到kafka命令:
tiup ctl:v4.0.14 cdc changefeed create --pd=http://10.20.10.10:2379 --sink-uri=“kafka://kafka1.com:9092,kafka2.com:9092,kafka3.com:9092/topic1?kafka-version=2.7.0&sasl-user=user&sasl-password=password&sasl-mechanism=SCRAM-SHA-256&partition-num=5&max-message-bytes=1048576&replication-factor=1&protocol=canal-json” --changefeed-id=“changefeed-djg” --config=/home/tidb/changefeed-djg.toml
【遇到的问题:问题现象及影响】
使用tiup ctl:v4.0.14 cdc changefeed list --pd=http://10.20.10.10:2379查看:
{
“id”: “changefeed-djg”,
“summary”: {
“state”: “stopped”,
“tso”: 442620606907154444,
“checkpoint”: “2023-07-04 17:40:18.878”,
“error”: {
“addr”: “10.20.24.243:8300”,
“code”: “CDC:ErrProcessorUnknown”,
“message”: “[CDC:ErrOperateOnClosedNotifier]operate on a closed notifier”
}
}
}
【资源配置】cdc.log报错日志:
[2023/07/04 17:40:19.537 +08:00] [ERROR] [processor.go:1382] [“error on running processor”] [capture=10.20.26.249:8300] [changefeed=changefeed-djg] [processor=d4b0285b-c533-4bbb-9dab-beb551144f6a] [error=“[CDC:ErrOperateOnClosedNotifier]operate on a closed notifier”] [errorVerbose=“[CDC:ErrOperateOnClosedNotifier]operate on a closed notifier\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/errors.go:174\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\tgithub.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/normalize.go:156\ngithub.com/pingcap/ticdc/pkg/notify.(*Notifier).NewReceiver\n\tgithub.com/pingcap/ticdc@/pkg/notify/notify.go:87\ngithub.com/pingcap/ticdc/cdc.(*oldProcessor).sorterConsume\n\tgithub.com/pingcap/ticdc@/cdc/processor.go:1111\ngithub.com/pingcap/ticdc/cdc.(*oldProcessor).addTable.func2.5\n\tgithub.com/pingcap/ticdc@/cdc/processor.go:868\nruntime.goexit\n\truntime/asm_amd64.s:1357”]
[2023/07/04 17:40:19.537 +08:00] [ERROR] [processor.go:1420] [“processor receives redundant error”] [error=“[CDC:ErrPDEtcdAPIError]context canceled”] [errorVerbose=“[CDC:ErrPDEtcdAPIError]context canceled\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/errors.go:174\ngithub.com/pingcap/errors.(*Error).GenWithStackByCause\n\tgithub.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/normalize.go:279\ngithub.com/pingcap/ticdc/pkg/errors.WrapError\n\tgithub.com/pingcap/ticdc@/pkg/errors/helper.go:28\ngithub.com/pingcap/ticdc/cdc/kv.CDCEtcdClient.PutTaskWorkload\n\tgithub.com/pingcap/ticdc@/cdc/kv/etcd.go:563\ngithub.com/pingcap/ticdc/cdc.(*oldProcessor).workloadWorker\n\tgithub.com/pingcap/ticdc@/cdc/processor.go:464\ngithub.com/pingcap/ticdc/cdc.(*oldProcessor).Run.func6\n\tgithub.com/pingcap/ticdc@/cdc/processor.go:279\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\tgolang.org/x/sync@v0.0.0-20201020160332-67f06af15bc9/errgroup/errgroup.go:57\nruntime.goexit\n\truntime/asm_amd64.s:1357”]
请问什么原因造成的,如何解决