【TiDB 使用环境】生产环境
【TiDB 版本】4.0.6
【操作系统】centos7.9
【部署方式】tiup
【集群数据量】cdc单节点 kafka单节点
4.0.6版本的TICDC同步数据到KAFKA
又有新的问题,求大神解惑:
[tidb@mvxl55908 ~]$ tiup cdc cli changefeed list --pd=http://xxxx:2379
tiup is checking updates for component cdc …
Starting component cdc
: /home/tidb/.tiup/components/cdc/v4.0.6/cdc cli changefeed list --pd=http://xxxx:2379
[
{
“id”: “05312cdc”,
“summary”: {
“state”: “stopped”,
“tso”: 458403565135463017,
“checkpoint”: “2025-05-31 13:53:46.475”,
“error”: {
“addr”: “xxxx:8300”,
“code”: “CDC:ErrProcessorUnknown”,
“message”: “[CDC:ErrSchemaStorageUnresolved]can not found schema snapshot, the specified ts(458404441548390806) is more than resolvedTs(458404437839053182)”
}
}
}
]
cdc_stderr.log日志报错信息如下
[root@mwpl72286 log]# tail -200f cdc_stderr.log
{“level”:“warn”,“ts”:“2025-05-31T14:55:02.849+0800”,“caller”:“clientv3/retry_interceptor.go:62”,“msg”:“retrying of unary invoker failed”,“target”:“endpoint://client-75010e8c-7a9e-48b7-b68f-503241fbdc11/xxxx:2379”,“attempt”:0,“error”:“rpc error: code = Canceled desc = context canceled”}
[2025/05/31 14:55:04.902 +08:00] [WARN] [processor.go:341] [“update info failed”] [changefeed=05312cdc] [error=“[CDC:ErrAdminStopProcessor]stop processor by admin command”] [errorVerbose=“[CDC:ErrAdminStopProcessor]stop processor by admin command\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20200902104258-eba4f1d8f6de/errors.go:174\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\tgithub.com/pingcap/errors@v0.11.5-0.20200902104258-eba4f1d8f6de/terror_error.go:160\ngithub.com/pingcap/ticdc/cdc.(*processor).flushTaskStatusAndPosition.func1\n\tgithub.com/pingcap/ticdc@/cdc/processor.go:529\ngithub.com/pingcap/ticdc/cdc/kv.CDCEtcdClient.AtomicPutTaskStatus.func1\n\tgithub.com/pingcap/ticdc@/cdc/kv/etcd.go:615\ngithub.com/pingcap/ticdc/pkg/retry.Run.func1\n\tgithub.com/pingcap/ticdc@/pkg/retry/retry.go:31\ngithub.com/cenkalti/backoff.RetryNotify\n\tgithub.com/cenkalti/backoff@v2.2.1+incompatible/retry.go:37\ngithub.com/cenkalti/backoff.Retry\n\tgithub.com/cenkalti/backoff@v2.2.1+incompatible/retry.go:24\ngithub.com/pingcap/ticdc/pkg/retry.Run\n\tgithub.com/pingcap/ticdc@/pkg/retry/retry.go:30\ngithub.com/pingcap/ticdc/cdc/kv.CDCEtcdClient.AtomicPutTaskStatus\n\tgithub.com/pingcap/ticdc@/cdc/kv/etcd.go:593\ngithub.com/pingcap/ticdc/cdc.(*processor).flushTaskStatusAndPosition\n\tgithub.com/pingcap/ticdc@/cdc/processor.go:517\ngithub.com/pingcap/ticdc/cdc.(*processor).positionWorker.func1.1\n\tgithub.com/pingcap/ticdc@/cdc/processor.go:334\ngithub.com/pingcap/ticdc/pkg/retry.Run.func1\n\tgithub.com/pingcap/ticdc@/pkg/retry/retry.go:31\ngithub.com/cenkalti/backoff.RetryNotify\n\tgithub.com/cenkalti/backoff@v2.2.1+incompatible/retry.go:37\ngithub.com/cenkalti/backoff.Retry\n\tgithub.com/cenkalti/backoff@v2.2.1+incompatible/retry.go:24\ngithub.com/pingcap/ticdc/pkg/retry.Run\n\tgithub.com/pingcap/ticdc@/pkg/retry/retry.go:30\ngithub.com/pingcap/ticdc/cdc.(*processor).positionWorker.func1\n\tgithub.com/pingcap/ticdc@/cdc/processor.go:333\ngithub.com/pingcap/ticdc/cdc.(*processor).positionWorker\n\tgithub.com/pingcap/ticdc@/cdc/processor.go:425\ngithub.com/pingcap/ticdc/cdc.(*processor).Run.func1\n\tgithub.com/pingcap/ticdc@/cdc/processor.go:254\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\tgolang.org/x/sync@v0.0.0-20200625203802-6e8e738ad208/errgroup/errgroup.go:57\nruntime.goexit\n\truntime/asm_amd64.s:1357”]
[2025/05/31 14:55:04.902 +08:00] [INFO] [processor.go:372] [“Local resolved worker exited”]
[2025/05/31 14:55:04.902 +08:00] [INFO] [processor.go:791] [“syncResolved stopped”]
[2025/05/31 14:55:04.902 +08:00] [INFO] [processor.go:708] [“Global resolved worker exited”]
[2025/05/31 14:55:06.873 +08:00] [WARN] [changefeed.go:853] [“failed to close ddl handler”] [error=“context canceled”] [errorVerbose=“context canceled\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20200902104258-eba4f1d8f6de/errors.go:174\ngithub.com/pingcap/errors.Trace\n\tgithub.com/pingcap/errors@v0.11.5-0.20200902104258-eba4f1d8f6de/juju_adaptor.go:15\ngithub.com/pingcap/ticdc/cdc.(*ddlHandler).Close\n\tgithub.com/pingcap/ticdc@/cdc/owner_operator.go:118\ngithub.com/pingcap/ticdc/cdc.(*changeFeed).Close\n\tgithub.com/pingcap/ticdc@/cdc/changefeed.go:851\ngithub.com/pingcap/ticdc/cdc.(*Owner).dispatchJob\n\tgithub.com/pingcap/ticdc@/cdc/owner.go:673\ngithub.com/pingcap/ticdc/cdc.(*Owner).handleAdminJob\n\tgithub.com/pingcap/ticdc@/cdc/owner.go:803\ngithub.com/pingcap/ticdc/cdc.(*Owner).run\n\tgithub.com/pingcap/ticdc@/cdc/owner.go:1032\ngithub.com/pingcap/ticdc/cdc.(*Owner).Run\n\tgithub.com/pingcap/ticdc@/cdc/owner.go:964\ngithub.com/pingcap/ticdc/cdc.(*Server).campaignOwnerLoop\n\tgithub.com/pingcap/ticdc@/cdc/server.go:286\ngithub.com/pingcap/ticdc/cdc.(*Server).run.func1\n\tgithub.com/pingcap/ticdc@/cdc/server.go:318\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\tgolang.org/x/sync@v0.0.0-20200625203802-6e8e738ad208/errgroup/errgroup.go:57\nruntime.goexit\n\truntime/asm_amd64.s:1357”]