Skip to content

Conversation

@palmere-google
Copy link
Contributor

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:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕️

@palmere-google palmere-google requested a review from a team as a code owner July 24, 2021 03:04
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 24, 2021
evict(options);
}
},
MoreExecutors.directExecutor());
Copy link
Contributor

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()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, thanks done!

import javax.annotation.Nullable;
import org.apache.flink.util.function.SerializableSupplier;

@AutoValue
Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor

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()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, fair enough, done.

@palmere-google palmere-google merged commit 52ab0ba into master Jul 27, 2021
@palmere-google palmere-google deleted the palmere-dev-publish branch July 27, 2021 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants