Skip to content

[FLINK-35870] Change DEFAULT_KAFKA_TRANSACTION_TIMEOUT in KafkaSinkBuilder #110

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

twosom
Copy link

@twosom twosom commented Jul 28, 2024

change DEFAULT_KAFKA_TRANSACTION_TIMEOUT in KafkaSinkBuilder class.

The default value is 15 minutes, as shown in the official Kakfa documentation.

So I changed it from 1 hour to 15 minutes and added the test.
스크린샷 2024-07-28 오후 1 56 35

Copy link

boring-cyborg bot commented Jul 28, 2024

Thanks for opening this pull request! Please check out our contributing guidelines. (https://flink.apache.org/contributing/how-to-contribute.html)

@@ -61,7 +61,7 @@
public class KafkaSinkBuilder<IN> {

private static final Logger LOG = LoggerFactory.getLogger(KafkaSinkBuilder.class);
private static final Duration DEFAULT_KAFKA_TRANSACTION_TIMEOUT = Duration.ofHours(1);
private static final Duration DEFAULT_KAFKA_TRANSACTION_TIMEOUT = Duration.ofMinutes(15);

Choose a reason for hiding this comment

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

It seems a reasonable change, but I am concerned about changing the default of an option. The cautious approach would be to introduce a new parameter with the new default, so the user can choose when to move to the new default and there are no unexpected changes in behaviour for minor upgrades.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants