-
Notifications
You must be signed in to change notification settings - Fork 289
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
DM-worker may has high CPU usage and flood log after start a GTID task #5063
Comments
@GMHDBJD we implemented wrong logic about skipped GTID in relay log reader. I guess the reason why your experiment shows evrey skipped GTID is replaced by heartbeat event is And this is my interpretation for behaviour of MySQL server:
|
What did you do?
the bug has following prerequisites:
enable-gtid: true
in upstream config, andall
task when last upstream mysql binlog file has a large size or start aincremental
task from a middle position of binlog file, or the task is auto resumed at a middle position of binlog fileWhat did you expect to see?
works fine
What did you see instead?
For
all
mode task, the problematic duration is related to last upstream mysql binlog file size.For
incremental
task, the problematic duration is related to the specified starting binlog locationVersions of the cluster
DM version (run
dmctl -V
ordm-worker -V
ordm-master -V
):v5.4.0, v6.0.0
Upstream MySQL/MariaDB server version:
(paste upstream MySQL/MariaDB server version here)
Downstream TiDB cluster version (execute
SELECT tidb_version();
in a MySQL client):(paste TiDB cluster version here)
How did you deploy DM: tiup or manually?
(leave TiUP or manually here)
Other interesting information (system version, hardware config, etc):
current status of DM cluster (execute
query-status <task-name>
in dmctl)(paste current status of DM cluster here)
The text was updated successfully, but these errors were encountered: