Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

precheck didn't work so dumpling created illegal metadata #1320

Closed
lance6716 opened this issue Dec 2, 2020 · 3 comments · Fixed by #1366
Closed

precheck didn't work so dumpling created illegal metadata #1320

lance6716 opened this issue Dec 2, 2020 · 3 comments · Fixed by #1366
Labels
severity/moderate type/bug This issue is a bug report

Comments

@lance6716
Copy link
Collaborator

lance6716 commented Dec 2, 2020

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.

https://asktug.com/t/topic/64011/7

  1. What did you expect to see?

since this error is Error 1227: Access denied; you need (at least one of) the SUPER, REPLICATION CLIENT privilege(s) for this operation, missing of REPLICATION CLIENT should be deteced early

  1. What did you see instead?

parse mydumper metadata error: EOF, metadata: Started dump at: 2020-12-01 18:16:30\nSHOW MASTER STATUS:\nSHOW MASTER STATUS: /* AFTER CONNECTION POOL ESTABLISHED */\nFinished dump at: 2020-12-01 23:07:35\n

  1. Versions of the cluster

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

      2.0.0

    • Upstream MySQL/MariaDB server version:

      MySQL 8.0.14

    • Downstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):

      (paste TiDB cluster version here)
      
    • How did you deploy DM: DM-Ansible or manually?

      (leave DM-Ansible or manually here)
      
    • Other interesting information (system version, hardware config, etc):

  2. current status of DM cluster (execute query-status in dmctl)

  3. Operation logs

    • Please upload dm-worker.log for every DM-worker instance if possible
    • Please upload dm-master.log if possible
    • Other interesting logs
    • Output of dmctl's commands with problems
  4. Configuration of the cluster and the task

    • dm-worker.toml for every DM-worker instance if possible
    • dm-master.toml for DM-master if possible
    • task config, like task.yaml if possible
    • inventory.ini if deployed by DM-Ansible
  5. Screenshot/exported-PDF of Grafana dashboard or metrics' graph in Prometheus for DM if possible

@glkappe
Copy link

glkappe commented Dec 3, 2020

@lance6716 This issue will be cherry picked in which version of dm

@lance6716
Copy link
Collaborator Author

@lance6716 This issue will be cherry picked in which version of dm

the root cause is still not located, maybe it's a MySQL 8.0 problem. If so, DM v1.0 didn't support MySQL 8.0 so that's out of our support

@lance6716
Copy link
Collaborator Author

@lance6716 This issue will be cherry picked in which version of dm

This is not a MySQL 8.0 problem, so it should effect all version of DM. We should check privilege in a finer way, that is checking granted databases/tables. Specifically, REPLICATION CLIENT should be granted on *.*.

After fixing, lacking privilege should be reported in pre-check

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
severity/moderate type/bug This issue is a bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants