Skip to content

Commit

Permalink
[FLINK-20114][connector/kafka] Auto offset commit should be disabled …
Browse files Browse the repository at this point in the history
…by default.
  • Loading branch information
lindong28 authored and becketqin committed Mar 29, 2021
1 parent 8de1784 commit a4360c7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ private void parseAndSetRequiredProperties() {
true);
maybeOverride(
ConsumerConfig.GROUP_ID_CONFIG, "KafkaSource-" + new Random().nextLong(), false);
maybeOverride(ConsumerConfig.ENABLE_AUTO_COMMIT_CONFIG, "false", false);
maybeOverride(
ConsumerConfig.AUTO_OFFSET_RESET_CONFIG,
startingOffsetsInitializer.getAutoOffsetResetStrategy().name().toLowerCase(),
Expand Down

0 comments on commit a4360c7

Please sign in to comment.