psolomin opened a new issue, #26073: URL: https://github.com/apache/beam/issues/26073
### What needs to happen? https://github.com/apache/beam/blob/7ee74d2bf7338e82d35e4429e6d21decc1097621/sdks/java/io/amazon-web-services2/src/main/java/org/apache/beam/sdk/io/aws2/kinesis/KinesisReader.java always creates checkpoints with AFTER_SEQUENCE_NUMBER as soon as a record for a shard is ack-ed. When the consumer starts from a checkpoint, such checkpoint is always "converted" into AT_SEQUENCE_NUMBER for shard reading, because subSequenceNumber is never set to `null` in records acknowledgements: https://github.com/apache/beam/blob/7ee74d2bf7338e82d35e4429e6d21decc1097621/sdks/java/io/amazon-web-services2/src/main/java/org/apache/beam/sdk/io/aws2/kinesis/ShardCheckpoint.java#L155 This commit demonstrates it: https://github.com/psolomin/beam/pull/114/commits/93f29a7447e76a1d366db7f54170e5cceadb5797 It would be more consistent to persist AT_SEQUENCE_NUMBER in checkpoints, and have the consumers starting points to be used directly from checkpoints. ### Issue Priority Priority: 3 (nice-to-have improvement) ### Issue Components - [ ] Component: Python SDK - [X] Component: Java SDK - [ ] Component: Go SDK - [ ] Component: Typescript SDK - [ ] Component: IO connector - [ ] Component: Beam examples - [ ] Component: Beam playground - [ ] Component: Beam katas - [ ] Component: Website - [ ] Component: Spark Runner - [ ] Component: Flink Runner - [ ] Component: Samza Runner - [ ] Component: Twister2 Runner - [ ] Component: Hazelcast Jet Runner - [ ] Component: Google Cloud Dataflow Runner -- 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]
