Skip to content
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

can't start a GTID-based incremental task when upstream GTID is empty #3731

Closed
lance6716 opened this issue Aug 18, 2021 · 6 comments · Fixed by #5340
Closed

can't start a GTID-based incremental task when upstream GTID is empty #3731

lance6716 opened this issue Aug 18, 2021 · 6 comments · Fixed by #5340
Assignees
Labels
affects-6.0 area/dm Issues or PRs related to DM. severity/major type/bug The issue is confirmed as a bug.

Comments

@lance6716
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do? If possible, provide a recipe for reproducing the error.

upstream gtid is empty, and binlog-gtid in meta field in task file is also empty

  1. What did you expect to see?

start successfully

  1. What did you see instead?

query-status shows "invalid position (mysql-bin.000001, 4) or GTID not enabled in upstream"

  1. Versions of the cluster

    • DM version (run dmctl -V or dm-worker -V or dm-master -V):

      v2.0.5
      
@lance6716 lance6716 changed the title can start a GTID-based incremental task when upstream GTID is empty can't start a GTID-based incremental task when upstream GTID is empty Aug 18, 2021
@lance6716 lance6716 transferred this issue from pingcap/dm Dec 6, 2021
@lance6716 lance6716 added area/dm Issues or PRs related to DM. type/bug The issue is confirmed as a bug. labels Dec 6, 2021
@lance6716
Copy link
Contributor Author

it's very annoying because many of out internal logic can't tell empty GTID set from GTID not enabled. Like

if !s.cfg.EnableGTID || location.GTIDSetStr() != "" || location.Position.Name == "" {

/cc @niubell

@niubell
Copy link
Contributor

niubell commented Apr 20, 2022

/assign D3Hunter

@lance6716
Copy link
Contributor Author

During a little refactor, I think we can use nil gtid to represent "gtid not enabled", and empty string to represent empty gtid. Do you have some suggrestions @D3Hunter

@D3Hunter
Copy link
Contributor

so hacky, why not check s.cfg.EnableGTID directly

@niubell
Copy link
Contributor

niubell commented Apr 27, 2022

/assign gmhdbjd

@niubell
Copy link
Contributor

niubell commented Apr 27, 2022

/unassign D3Hunter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.0 area/dm Issues or PRs related to DM. severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants