pingcap / tiflow

This repo maintains DM (a data migration platform) and TiCDC (change data capture for TiDB)
Apache License 2.0
417 stars 272 forks source link

TiCDC supports synchronization of user information tables #2192

Closed hi-rustin closed 2 years ago

hi-rustin commented 3 years ago

Feature Request

Is your feature request related to a problem? Please describe:

Currently TiCDC filters all system tables. But in the master-slave scenario we want to synchronize the user information table so that after the master-slave switch there will be no error that the user cannot login.

Describe the feature you'd like: TiCDC supports synchronization of user information tables

Describe alternatives you've considered:

N/A

Teachability, Documentation, Adoption, Migration Strategy: N/A

hi-rustin commented 3 years ago

This is a feature request from tidbclould that has the following problems if implemented:

Off-line discussion: Considering this complex logic, we decided to develop a special version of cdc for tidbcloud. tidbcloud will ensure that upstream and downstream permissions are consistent and that all tables are synchronized. This way, the above mentioned problems do not exist.

cc: @amyangfei @overvenus @leoppro

Do you have any questions about this feature request? If not I'm ready to develop it (already briefly tested the feature and it works), also which branch do I need to commit the code to?

overvenus commented 3 years ago

Just a reminder, we do need to pay attention to mysql.user privilege requirements.

which branch do I need to commit the code to?

Please choose "cloud-cdc-5.0" as your PR base branch.

hi-rustin commented 3 years ago

Just a reminder, we do need to pay attention to mysql.user privilege requirements.

@overvenus Could you please provide more details?

hi-rustin commented 2 years ago

/close

by https://github.com/pingcap/ticdc/pull/2218

ti-chi-bot commented 2 years ago

@hi-rustin: Closing this issue.

In response to [this](https://github.com/pingcap/ticdc/issues/2192#issuecomment-890860234): >/close > >by https://github.com/pingcap/ticdc/pull/2218 Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.