We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f068555 commit 950217cCopy full SHA for 950217c
localstack-core/localstack/services/kinesis/provider.py
@@ -125,7 +125,10 @@ def event_generator():
125
raise
126
shard_iterator = result.get("NextShardIterator")
127
records = result.get("Records", [])
128
- if not records:
+ if records:
129
+ # Update the last sequence number to the last record's sequence number
130
+ last_sequence_number = records[-1].get("SequenceNumber", last_sequence_number)
131
+ else:
132
# On AWS there is *at least* 1 event every 5 seconds
133
# but this is not possible in this structure.
134
# In order to avoid a 5-second blocking call, we make the compromise of 3 seconds.
0 commit comments