-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mysql changefeed blocked by abnormal kafka changefeed #4241
Comments
maybe we should close the sync in a asynchronous way? |
For protocol, which would send checkpoint ts, this will happen. At most, block the owner for about 1 minutes. |
This problem will cause the owner and processor blocked for a period of time, but only happen when all Kafka brokers were shut down. In a real-world production Kafka cluster, it would be rare that all Kafka brokers were shut down at the same time. To solve this problem:
|
after #4359 merged, blocking won't last too long, should no more than 2min, so that change the severity to minor. |
//label affects-5.3 |
/label affects-5.3 |
What did you do?
{
"id": "kafka-task-1",
"summary": {
"state": "normal",
"tso": 430296185518948355,
"checkpoint": "2022-01-06 14:14:42.308",
"error": null
}
},
{
"id": "kafka-task-3",
"summary": {
"state": "normal",
"tso": 430296185518948355,
"checkpoint": "2022-01-06 14:14:42.308",
"error": null
}
},
{
"id": "kafka-task-4",
"summary": {
"state": "normal",
"tso": 430296185518948355,
"checkpoint": "2022-01-06 14:14:42.308",
"error": null
}
},
{
"id": "mysql-task-1",
"summary": {
"state": "normal",
"tso": 430296201260695559,
"checkpoint": "2022-01-06 14:15:42.358",
"error": null
}
}
]
[root@CentOS76_VM log]# date
Thu Jan 6 14:42:04 CST 2022
What did you expect to see?
mysql changefeed still can works normally
What did you see instead?
cdc log has expected ERROR: [ERROR] [changefeed.go:118] ["an error occurred in Owner"] [changefeedID=kafka-task-3] [error="[CDC:ErrKafkaNewSaramaProducer]new sarama producer: kafka: client has run out of available brokers to talk to (Is your cluster reachable?)"]
WARN: [WARN] [client.go:226] ["etcd client outCh blocking too long, the etcdWorker may be stuck"] [duration=20m39.000245874s]
Versions of the cluster
Upstream TiDB cluster version (execute
SELECT tidb_version();
in a MySQL client):5.4.0
TiCDC version (execute
cdc version
):5.4.0
The text was updated successfully, but these errors were encountered: