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

Source of requeest does not match with source in worker #1102

Closed
GMHDBJD opened this issue Sep 25, 2020 · 0 comments · Fixed by #1104
Closed

Source of requeest does not match with source in worker #1102

GMHDBJD opened this issue Sep 25, 2020 · 0 comments · Fixed by #1104
Labels
type/bug This issue is a bug report

Comments

@GMHDBJD
Copy link
Collaborator

GMHDBJD commented Sep 25, 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.
operate-schema get -s mysql-replica-01,mysql-replica-02 test -d handle_error -t tb1
  1. What did you expect to see?
{
    "result": true,
    "msg": "",
    "sources": [
        {
            "result": true,
            "msg": "CREATE TABLE `tb1` ( `id` int(11) DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin",
            "source": "mysql-replica-01",
            "worker": "worker1"
        },
        {
            "result": true,
            "msg": "CREATE TABLE `tb1` ( `id` int(11) DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin",
            "source": "mysql-replica-02",
            "worker": "worker2"
        }
    ]
}
  1. What did you see instead?
    only one source is true
{
    "result": true,
    "msg": "",
    "sources": [
        {
            "result": false,
            "msg": "[code=40072:class=dm-worker:scope=internal:level=high], Message: source of request does not match with source in worker",
            "source": "mysql-replica-01",
            "worker": ""
        },
        {
            "result": true,
            "msg": "CREATE TABLE `tb1` ( `id` int(11) DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin",
            "source": "mysql-replica-02",
            "worker": "worker2"
        }
    ]
}
{
    "result": true,
    "msg": "",
    "sources": [
        {
            "result": true,
            "msg": "CREATE TABLE `tb1` ( `id` int(11) DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin",
            "source": "mysql-replica-01",
            "worker": "worker1"
        },
        {
            "result": false,
            "msg": "[code=40072:class=dm-worker:scope=internal:level=high], Message: source of request does not match with source in worker",
            "source": "mysql-replica-02",
            "worker": ""
        }
    ]
}
  1. Versions of the cluster

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

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

Successfully merging a pull request may close this issue.

1 participant