rkhachatryan opened a new pull request, #360:
URL: https://github.com/apache/flink-connector-kafka/pull/360
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 resolve concrete offsets in the enumerator, so the reset
strategy never decides where a new split starts; it only applies to a position
that left the log afterwards. Return EARLIEST, as the earliest initializer
already does.
## 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 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]