DM precheck failed to check GTID when stop and then start from checkpoint with same task config #11648
Labels
area/dm
Issues or PRs related to DM.
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
severity/moderate
type/bug
The issue is confirmed as a bug.
What did you do?
below is the steps I summarized from a user feedback, I hasn't reproduce it locally, but from the code seems it will fail
"ERROR 1236 (HY000): The slave is connecting using CHANGE MASTER TO MASTER_AUTO_POSITION = 1, but the master has purged binary logs containing GTIDs that the slave requires."
in precheck, we are always uses the position in task config, but since we are recover from checkpoint, we should uses the position in checkpoint instead as that's checkpoint position is the real position we will use, and might also need to consider this issue pingcap/dm#1418
tiflow/dm/pkg/checker/binlog.go
Lines 356 to 368 in 9062d7c
What did you expect to see?
No response
What did you see instead?
No response
Versions of the cluster
dm version 7.5.3, upstream unknown right now,
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: