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

[Fix] fix multi database sync npe error #534

Merged
merged 5 commits into from
Jan 3, 2025

Conversation

JNSimba
Copy link
Member

@JNSimba JNSimba commented Jan 2, 2025

Proposed changes

Issue Number: close #xxx

Problem Summary:

When synchronizing multiple databases, not writing --database may cause null pointer errors

When synchronizing multiple databases, there are two scenarios

  1. Synchronize multiple upstream databases to one database of doris
--database dorisdb
--mysql-conf database-name db.*

Note: Currently, if multiple databases have tables with the same name, similar to the scenario of sharding, they will be written to the same downstream table

  1. Write multiple upstream databases to multiple downstream databases
    No need to specify --database
    Just specify --mysql-conf database-name db.*

Checklist(Required)

  1. Does it affect the original behavior: (Yes/No/I Don't know)
  2. Has unit tests been added: (Yes/No/No Need)
  3. Has document been added or modified: (Yes/No/No Need)
  4. Does it need to update dependencies: (Yes/No)
  5. Are there any changes that cannot be rolled back: (Yes/No)

Further comments

If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...

@JNSimba JNSimba merged commit 1023235 into apache:master Jan 3, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants