Skip to content

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

@boring-cyborg
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)


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.

@github-actions
Copy link

This PR is being marked as stale since it has not had any activity in the last 90 days.
If you would like to keep this PR alive, please leave a comment asking for a review.
If the PR has merge conflicts, update it with the latest from the base branch.

If you are having difficulty finding a reviewer, please reach out to the
community, contact details can be found here: https://flink.apache.org/what-is-flink/community/

If this PR is no longer valid or desired, please feel free to close it.
If no activity occurs in the next 30 days, it will be automatically closed.

@github-actions github-actions bot added the stale label Nov 18, 2025
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