You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2021/10/28 10:37:55 UTC

[GitHub] [flink] wangqinghuan commented on a change in pull request #17588: [FLINK-24681] set initial offset to OffsetResetStrategy.LATEST

wangqinghuan commented on a change in pull request #17588:
URL: https://github.com/apache/flink/pull/17588#discussion_r738261265



##########
File path: flink-connectors/flink-connector-kafka/src/main/java/org/apache/flink/connector/kafka/source/enumerator/initializer/OffsetsInitializer.java
##########
@@ -105,7 +105,7 @@
      * @return an offset initializer which initialize the offsets to the committed offsets.
      */
     static OffsetsInitializer committedOffsets() {
-        return committedOffsets(OffsetResetStrategy.NONE);
+        return committedOffsets(OffsetResetStrategy.LATEST);

Review comment:
       In Flink-1.13-SQL, default behavior is LATEST even not set 'auto.offset.reset'.




-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org