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

[#5082] fix(catalog): fix clean bug after create catalog failed #5084

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

mchades
Copy link
Contributor

@mchades mchades commented Oct 10, 2024

What changes were proposed in this pull request?

  • not clean catalog if catalog already exists

Why are the changes needed?

we will clean the catalog when the creation fails, but if the catalog already exists it will also be dropped which is unexpected.

Fix: #5082

Does this PR introduce any user-facing change?

no

How was this patch tested?

tests added

@mchades mchades requested review from jerryshao and yuqi1129 October 10, 2024 03:51
@mchades mchades self-assigned this Oct 10, 2024
@mchades mchades added the branch-0.6 Automatically cherry-pick commit to branch-0.6 label Oct 10, 2024
} finally {
if (!createSuccess) {
if (needClean) {
// Clean up the default schema under the catalog if creation failed
Copy link
Contributor

Choose a reason for hiding this comment

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

// Clean up the default schema under the catalog if creation failed

I believe this scenario is only used for kafka catalog currently, so can you add more information about it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This has nothing to do with the Kafka catalog, the comment has been updated

@yuqi1129 yuqi1129 merged commit 12fc3f8 into apache:main Oct 10, 2024
26 checks passed
github-actions bot pushed a commit that referenced this pull request Oct 10, 2024
### What changes were proposed in this pull request?

 - not clean catalog if catalog already exists

### Why are the changes needed?

we will clean the catalog when the creation fails, but if the catalog
already exists it will also be dropped which is unexpected.

Fix: #5082 

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

tests added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch-0.6 Automatically cherry-pick commit to branch-0.6
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug report] Cannot found catalog after repeat creation
2 participants