-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Kinesis::GetShardIterator
with AT_TIMESTAMP
does not work when CBOR is disabled
#2588
Comments
Thank you for reporting the issue @dannycranmer. We are able to reproduce, we are going to investigate the cause. |
When working against localstack (or kinesis-mock or kinesalite, both of which localstack can use) I think that using
(See here). In the above If you reference
(Can't find this in GitHub anywhere, sorry.) Again in milliseconds. Confusingly, in the docs for
This can be misread as "the value should be in milliseconds", but this is followed in the docs by
As can be seen here, the value is actually in seconds, not milliseconds. In localstack (i.e. kinesalite or mock-kinesis) this leads to an error such as this: Unfortunately this seems to me to render the Flink Kinesis source as unusable with localstack, as discussed here, at least when trying to use Also from what I can see this is not fixed in v2 of the SDK. |
I was going to file the same one (Not about CBOR disabled, but the above comment, CBOR enabled). Please do note that it is not just a confusion on documentation. The spec of CBOR clearly says the numeric value should be The fix is obvious and I'm happy to submit a PR if we are happy to fix this. I would like to know whether fixing this would affect Kinesis (server side) though. cc. @debora-ito Wanted to hear the feedback whether we want to fix the bug or not, and if we want to fix that, am I encouraged to submit a PR. |
Or does AWS use a custom specification of CBOR? If then it's unfortunate, and it'd be nice if there is a parser being published for the custom specification. (python would be nice to integrate with LocalStack.) |
Isn't it this marshaller part that has bad timestampFormat in binding? |
Hi everyone, we apologize but this won't get fixed in v1. This issue was fixed in v2 (see aws/aws-sdk-java-v2#1023). We are still tracking the other CBOR-related issue in v2. Reference:
|
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
When you disable CBOR
Kinesis::GetShardIterator
usingAT_TIMESTAMP
does not work.Expected Behavior
Request is accepted and shard iterator is returned
Current Behavior
Steps to Reproduce
I have tested against SDK v1.11.844 and v1.11.1030
Possible Solution
Seems to work in v2 and might be related to aws/aws-sdk-java-v2#1021
Context
CBOR is not supported when using kinesalite and therefore CBOR is disabled for end to end tests
Your Environment
Bug was discovered in Flink Kinesis Connector issue, however reproduced in isolated project
The text was updated successfully, but these errors were encountered: