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

some route rules not in effect with lightning-loader #4945

Closed
Ehco1996 opened this issue Mar 18, 2022 · 1 comment · Fixed by #5155
Closed

some route rules not in effect with lightning-loader #4945

Ehco1996 opened this issue Mar 18, 2022 · 1 comment · Fixed by #5155
Assignees
Labels
area/dm Issues or PRs related to DM. severity/minor type/bug The issue is confirmed as a bug.

Comments

@Ehco1996
Copy link
Contributor

What did you do?

start a task.yaml with this config

---
name: test
task-mode: all
is-sharding: false
meta-schema: "dm_meta"

target-database:
  host: "127.0.0.1"
  port: 3307
  user: "root"
  password: "123456"

mysql-instances:
  - source-id: "mysql-replica-01"
    black-white-list: "instance" # compatible with deprecated config
    mydumper-config-name: "global"
    loader-config-name: "global"
    syncer-config-name: "global"
    route-rules: ["route-rule-1"]

black-white-list: # compatible with deprecated config
  instance:
    do-tables:
      - db-name: "webui"
        tbl-name: "*"

mydumpers:
  global:
    threads: 10
    chunk-filesize: 64
    skip-tz-utc: true
    extra-args: ""

loaders:
  global:
    pool-size: 10
    dir: "./dumped_data"

syncers:
  global:
    worker-count: 16
    batch: 100

routes: # 上游和下游表之间的路由 table routing 规则集
  route-rule-1: # 配置名称
    schema-pattern: "webui" # 库名匹配规则,支持通配符 "*" 和 "?"
    target-schema: "webui_test" # 目标库名称

What did you expect to see?

upstrem db: webui should be route to webui_test

What did you see instead?

upstrem db: webui is routed to webui

Versions of the cluster

commit: 9d718dbda0334d0e94f8e3de728b642f52fe3053

current status of DM cluster (execute query-status <task-name> in dmctl)

(paste current status of DM cluster here)
@Ehco1996 Ehco1996 added type/bug The issue is confirmed as a bug. area/dm Issues or PRs related to DM. labels Mar 18, 2022
@Ehco1996 Ehco1996 self-assigned this Mar 21, 2022
@Ehco1996 Ehco1996 changed the title some route rules not in effect with lighnnting-loader some route rules not in effect with lightning-loader Mar 22, 2022
@Ehco1996
Copy link
Contributor Author

releated to pingcap/tidb#33381

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

Successfully merging a pull request may close this issue.

3 participants