mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
* fix(kinesis): resolve LATEST shard iterator position at GetShardIterator time A LATEST iterator recomputed its start position as the shard tip on every GetRecords call, so records written between obtaining the iterator and the first poll were skipped forever. Snapshot the tip once when the iterator is created (matching DynamoDbStreamService) and encode it in the iterator's index slot. GetShardIterator now also fails fast with ResourceNotFoundException for an unknown shard, as on AWS. Fixes #1900 * test(kinesis): add regression tests for tailing with a LATEST iterator Reproduce issue #1900: a record written after the iterator is obtained must be returned, both on the first GetRecords call and when polling via NextShardIterator. * test(kinesis): cover unknown shard validation for LATEST iterators GetShardIterator must return ResourceNotFoundException when the shard does not exist instead of deferring the failure to GetRecords. * docs(kinesis): document shard iterator semantics Describe the supported iterator types and the LATEST tip-snapshot behavior; remove a stray empty Examples heading. * fix(kinesis): validate shard existence for all iterator types in GetShardIterator AWS rejects an unknown shard at GetShardIterator time for every iterator type, not just LATEST. Apply the shard lookup unconditionally instead of deferring the failure to GetRecords. Addresses review feedback on #1901. * test(kinesis): cover unknown shard validation across all iterator types