-
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
dm: Duplicate entry xx for key 'PRIMARY' on test-infra case tolerance 002 #3698
Comments
May be the same as the root cause of #3737 |
close it due to we have a duplicate issue #3737 |
even we kill worker immediately in #4035, may still face this problem as safe-mode already disabled. reopen this issue.
|
yes this is another problem when worker stopped but execSQL thread are still retry 😂, maybe add a cancel func to cancel |
also we should make sure |
dose worker-2 is the new worker? if so, it will enable safe-mode until so if we can make sure all execSQL thread was shutdown before old worker killed, there is no more write conflicts |
yes
if so, seems the error should not happen. see attached log, safe-mode is enabled between |
i think this is caused by old-worker's retry-write, after #4035 is merged, woker will cancel all execSQL thread before close, i will try reproduce and check wheather that pr can fix this issue case today |
/assign WizardXiao |
/unassign D3Hunter |
|
dm-dm-worker-0.log
What did you do?
test-infra case tolerance 002 (unstable, may not reproduce)
test
runs on worker-1test
scheduled to worker-0What did you expect to see?
sync-diff success after sysbench finish
What did you see instead?
test
paused due to error in title.Versions of the cluster
DM version (run
dmctl -V
ordm-worker -V
ordm-master -V
):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)The text was updated successfully, but these errors were encountered: