-
Notifications
You must be signed in to change notification settings - Fork 77
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
[BUG] Setting fragment data not working #405
Comments
In your sample what is an example input for each parameter so I can reproduce this? |
I made it so the options have defaults when not specified, so you can use to turn on the fragment metadata and still run with the default setup:
|
So I've checked out your fork and run the sample. I also exported the debug data dump, here is a snippet of the MKV:
You can see that all 10 metadata items are appended, and the pattern continues for every cluster. So there isn't an issue present. The KVS service has a limit of 10 unique metadata key/value items per fragment https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/how-meta.html , and there was an issue with metadata previously being pre-pended and post-pended to the cluster based off timing of the metadata submission, which could have caused your test sample to post more than 10 fragments to a single cluster and give the error discussed in the previous ticket. The stated error of this ticket is that every fragment should have metadata and from multiple runs of your provided test code that appears to be the case. Resolving ticket. |
Where are you looking at that MKV data and how are you viewing it? When I load the fragments with |
@daveisfera , we are prioritizing this issue for investigation this week. Apologies for not being able to pick it up earlier. |
@daveisfera I checked with |
I can verify that in some cases |
I was unable to reproduce this, I ran a cycle of adding 1 tag, then 2 tags then 3 tags, ..., 10 tags, and they were always there. One thing I did see is once the 11th tag is added, the tags 1-10 get removed (when setting the persistent flag to TRUE). I did not try with the persistent flag set to FALSE. Also make sure you use the |
The sample that I submitted to reproduce the problem uses the persistent flag set to both |
If we have 3 things that would be really helpful:
This way we can see the MKV that was actually sent to the server, the MKV that is returned from the server and the SDK side logs which tell us the fragment ack information as well as if the fragment metadata related APIs failed (make sure in your application you are logging the result of the put fragment metadata call so we know it is actually succeeding). |
I've been using
Is this a known issue or am I doing something wrong? |
Hi @daveisfera, could you please share the |
|
Would you please try sending the Example:
aws cli reference:
or as pointed out by @sirknightj when using boto3
|
I got the |
Could you share the results of the |
I attached the output from the first and second fragment. You can see that the first has two sets of tags (one at the beginning and then one at the end) and then the second fragment only has the set of tags at the end |
And then for completeness, here's the last one and you can see that it doesn't have any tags because there were two sets in the first fragment |
Media pipeline:
Logging
I added this to the sample so you can see everything by running directly:
#394
Describe the bug
Setting the fragment data returns that it's working, but it doesn't appear in the fragments. It's occasionally present on the first fragment, but never present on any of the following fragments.
SDK version number
1.5.0
Open source building
N/A
To Reproduce
(Use the updated sample found here: #394)
Expected behavior
Metadata is present in all of the fragments where it's been added
Desktop (please complete the following information):
Additional context
Sorry that I didn't explain this more directly in #396 but even though the errors are no longer present, the functionality still isn't working
The text was updated successfully, but these errors were encountered: