-
Notifications
You must be signed in to change notification settings - Fork 3
feat: Add a publisher cache for the pubsub lite sink #18
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
Conversation
| evict(options); | ||
| } | ||
| }, | ||
| MoreExecutors.directExecutor()); |
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.
don't use this- its liable to create weird deadlocks. Use SystemExecutors.alarmExecutor()
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.
Ah, thanks done!
refactoring tests
| import javax.annotation.Nullable; | ||
| import org.apache.flink.util.function.SerializableSupplier; | ||
|
|
||
| @AutoValue |
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.
Is the user creating one of these? if so, add a builder.
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.
The user won't create this class directly. It's the portion of the settings which affect the publisher, but there will be a proper sinksettings class
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.
Then get rid of the supplier from here please- if the supplier is present in the top level options, just use it instead of calling PublisherCache.get()
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.
Ah, fair enough, done.
f0d62a9 to
2b9c9c9
Compare
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #<issue_number_goes_here> ☕️