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

v5.3.1 relay log may turn off after master reboot #4803

Closed
lance6716 opened this issue Mar 8, 2022 · 4 comments
Closed

v5.3.1 relay log may turn off after master reboot #4803

lance6716 opened this issue Mar 8, 2022 · 4 comments
Assignees
Labels
affects-5.3 area/dm Issues or PRs related to DM. severity/moderate type/bug The issue is confirmed as a bug.

Comments

@lance6716
Copy link
Contributor

What did you do?

prerequisite: all conditions below must be satisfied

  • v5.3.1
  • user use start-relay -s source01 worker01 to start relay log for source01 on worker01
  • source configuration file of source01 has enable-relay: true (in v5.3.1, this field does not take effect, start-relay command is the only way to start relay)
  • master reboot or leader switch

What did you expect to see?

relay is still turned on for source01 on worker01

What did you see instead?

relay is turned off

Versions of the cluster

v5.3.1

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

(paste current status of DM cluster here)
@lance6716 lance6716 added type/bug The issue is confirmed as a bug. area/dm Issues or PRs related to DM. severity/moderate labels Mar 8, 2022
@lance6716
Copy link
Contributor Author

lance6716 commented Mar 8, 2022

Root cause

during cherry-pick and resolve conflict for #4430 , we wrongly included the logic of v5.4 into v5.3, this logic is about cleaning etcd relay KV which causes the issue.

Walkaround

If user need relay log feature, he/she must not have enable-relay: true in source configuration file

@niubell
Copy link
Contributor

niubell commented Mar 10, 2022

enable-relay is depreacted from v2.0.2, so we don't need to fix this issue, right ?

@lance6716
Copy link
Contributor Author

depreacted means it doesn't take effects, but

if sourceCfg.EnableRelay {
it can cause relay KV deleted.

User may upgrade from v2.0.1 and not turn off enable-relay

@lance6716
Copy link
Contributor Author

closed by #4877

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

No branches or pull requests

2 participants