8000 fix kinesis cbor timestamp parsing by alexrashed · Pull Request #11071 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content

fix kinesis cbor timestamp parsing #11071

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 21, 2024
Merged

Conversation

alexrashed
Copy link
Member

Motivation

This PR fixes the Kinesis request parsing in ASF for timestamp fields.
Where JSON timestamps are normal unix timestamps (where milliseconds can be defined via floating point), for CBOR the timestamp contains the milliseconds (so it's basically JSON * 1000).
#6791 fixed this issue for the serialier, but it was overlooked that the same format used for responses also needs to be considered when parsing incoming requests from clients.

Fixes #10037.

Changes

@alexrashed alexrashed added aws:kinesis Amazon Kinesis area: asf semver: patch Non-breaking changes which can be included in patch releases labels Jun 21, 2024
@alexrashed alexrashed added this to the 3.6 milestone Jun 21, 2024
@alexrashed alexrashed requested a review from dfangl June 21, 2024 14:10
@alexrashed alexrashed self-assigned this Jun 21, 2024
@alexrashed alexrashed requested a review from thrau as a code owner June 21, 2024 14:10
Copy link
github-actions bot commented Jun 21, 2024

S3 Image Test Results (AMD64 / ARM64)

  2 files  ±0    2 suites  ±0   3m 31s ⏱️ -2s
404 tests ±0  352 ✅ ±0   52 💤 ±0  0 ❌ ±0 
808 runs  ±0  704 ✅ ±0  104 💤 ±0  0 ❌ ±0 

Results for commit 9ccf4c9. ± Comparison against base commit 8154733.

♻️ This comment has been updated with latest results.

Copy link
github-actions bot commented Jun 21, 2024

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 34m 48s ⏱️ -38s
3 151 tests +2  2 755 ✅ +2  396 💤 ±0  0 ❌ ±0 
3 153 runs  +2  2 755 ✅ +2  398 💤 ±0  0 ❌ ±0 

Results for commit 9ccf4c9. ± Comparison against base commit 8154733.

♻️ This comment has been updated with latest results.

@alexrashed alexrashed force-pushed the fix-kinesis-cbor-timestamp-parsing branch from f83a6f6 to 9ccf4c9 Compare June 21, 2024 15:21
Copy link
Member
@thrau thrau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! thanks for the quick fix. LGTM

@thrau thrau merged commit 37a3428 into master Jun 21, 2024
37 checks passed
@thrau thrau deleted the fix-kinesis-cbor-timestamp-parsing branch June 21, 2024 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: asf aws:kinesis Amazon Kinesis semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Localstack fails to provide Kinesis shard iterator for iterator type AT_TIMESTAMP
2 participants
0