-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
[FLINK-37093][table] Fix catalog that failed validation due to no type still exists in catalogStoreHolder #25946
Conversation
Reviewed by Chi on 16/01/2025 Approve - looking for committer to merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jiefei30 Thanks for your contribution, only one minor comments.
@@ -589,6 +600,7 @@ void testCatalogStore() throws Exception { | |||
assertTrue(catalogManager.listCatalogs().contains("cat2")); | |||
assertTrue(catalogManager.listCatalogs().contains("cat3")); | |||
assertTrue(catalogManager.listCatalogs().contains("cat_comment")); | |||
assertFalse(catalogManager.listCatalogs().contains("cat_no_type")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be better to put this assertion together with the above assertThatThrownBy?
…e still exists in catalogStoreHolder
@hackergin done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @fsk119 please help review this PR when you are free. Thank you very much. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
need I backport this fix to release-2.0 ? @hackergin @fsk119 |
Please help backport to 2.0 and 1.20. I think 1.19 can also be fixed. |
done. #26138 #26141 @hackergin |
…nition in catalog store(apache#25946)
What is the purpose of the change
This pull request fix a bug which a catalog that failed validation due to no type still exists in catalogStoreHolder.
And this catalog you cannot USE, ALTER.
Brief change log
Verifying this change
This change is already covered by existing tests.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (no)Documentation