-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Flink: Close catalog opened by the dynamic sink serializer cache #17437
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
Open
vishnuprakaz
wants to merge
7
commits into
apache:main
Choose a base branch
from
vishnuprakaz:flink-dynamic-close-catalogs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+52
−1
Open
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d4b2b6b
Flink: Close catalog opened by the dynamic sink serializer cache
vishnuprakaz 6d539f2
Rewrite serializer cache close test without Mockito
vishnuprakaz 68de894
Rework close test on the extension's catalog loader
vishnuprakaz e3ab69a
Use the extension's managed catalog in test setup
vishnuprakaz 2ea25d5
Manage catalog lifecycle via TableLoader in serializer cache
vishnuprakaz ff5fa12
Load the catalog once and reuse it in the serializer cache
vishnuprakaz 0a43689
Shorten catalog field comment
vishnuprakaz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'm not sure loading / closing on every update is a good idea. Can we store
Catalogin a field? This will get rid of the duplicate loading and only load once per job.If we are concerned about not closing one instance, we could close it via
RuntimeContext#registerUserCodeClassLoaderReleaseHookIfAbsent, but I'm not sure this is necessary.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.
That makes a lot of sense, loading once and reusing is better trade actually. I was thinking per table and missed how many tables the dynamic sink could be routing. Made the changes, happy to adjust if anything looks off :)