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

[#5329] improvement(core): Clarify exception when importing entity multiple times #5844

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

mchades
Copy link
Contributor

@mchades mchades commented Dec 12, 2024

What changes were proposed in this pull request?

  • remind users not to register multiple catalogs using the same data source in the user doc
  • clarify exception when importing entity multiple times.

Why are the changes needed?

Fix: #5329

import one source multiple times will update the existing record and result in unexpected behaviors

Does this PR introduce any user-facing change?

yes, clarify the exception

How was this patch tested?

tests added

@mchades mchades requested a review from jerryshao December 12, 2024 10:47
@mchades mchades self-assigned this Dec 12, 2024
@tengqm
Copy link
Contributor

tengqm commented Dec 12, 2024

lgtm

} catch (EntityAlreadyExistsException e) {
LOG.error("Failed to import schema {} with id {} to the store.", identifier, uid, e);
throw new UnsupportedOperationException(
"The schema is already managed by another catalog and cannot be loaded by the current catalog.");
Copy link
Contributor

@jerryshao jerryshao Dec 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add more words to describe the cause here, also suggesting users how to resolve or avoid this problem?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@jerryshao jerryshao merged commit dc655c6 into apache:main Dec 17, 2024
26 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
3 participants