tzulitai commented on a change in pull request #5: [FLINK-15769] [kafka-io] Add 
configuring startup position for Kafka ingress
URL: https://github.com/apache/flink-statefun/pull/5#discussion_r373074470
 
 

 ##########
 File path: 
statefun-kafka-io/src/main/java/org/apache/flink/statefun/sdk/kafka/KafkaIngressBuilder.java
 ##########
 @@ -39,8 +39,7 @@
   private Class<? extends KafkaIngressDeserializer<T>> deserializerClass;
   private String kafkaAddress;
   private KafkaIngressAutoResetPosition autoResetPosition = 
KafkaIngressAutoResetPosition.LATEST;
-  private KafkaIngressStartupPosition startupPosition =
-      KafkaIngressStartupPosition.fromGroupOffsets();
+  private KafkaIngressStartupPosition startupPosition = 
KafkaIngressStartupPosition.fromLatest();
 
 Review comment:
   The `FlinkKafkaConsumer` actually uses committed group offsets as the 
default:
   
https://github.com/apache/flink/blob/master/flink-connectors/flink-connector-kafka-base/src/main/java/org/apache/flink/streaming/connectors/kafka/FlinkKafkaConsumerBase.java#L159
   
   The reason we (after a discussion with @igalshilman) chose to change this to 
latest, is because group offsets startup require that the user must set the 
consumer group id. We wanted to go with a default that requires the minimal 
setup to get started with using the ingress.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to