rkhachatryan opened a new pull request, #361:
URL: https://github.com/apache/flink-connector-kafka/pull/361
Backport of #360 to `v5.1`.
KafkaSourceBuilder sets auto.offset.reset from the starting offsets
initializer. LatestOffsetsInitializer and TimestampOffsetsInitializer returned
LATEST, so a running or restored split whose position fell below the log start
jumped to the log end and silently skipped every record still in the log. Both
initializers now return EARLIEST, and no longer warn when a user explicitly
configures auto.offset.reset=latest to keep the old behavior.
Both commits cherry-picked cleanly (`git cherry-pick -x`).
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency, including
`kafka.version` or `flink.version`): no
- The public API, i.e., is any changed class annotated with
`@Public(Evolving)` or `@Experimental`, or are the Table options or the PyFlink
wrappers changed: no
- Checkpointed state, its serializers, or exactly-once delivery (splits,
enumerator state, writer state, committables, transactions): yes
- The per-record code paths (split reader, record emitter, writer,
serialization schemas; performance sensitive): no
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes (please specify the tool below)
Generated-by: Claude Code (Claude Opus 5.5)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]