Skip to content
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

Fix KVSSINK State Transition Deadlock #1113

Merged
merged 5 commits into from
Dec 7, 2023
Merged

Fix KVSSINK State Transition Deadlock #1113

merged 5 commits into from
Dec 7, 2023

Conversation

stefankiesz
Copy link
Contributor

Move parent state transition to be in between upward and downward element transitions as per GStreamer documentation.

Tested using kvssink_gstreamer_sample to successfully ingest stream and cleanly exit upon sigint with videotestsrc, filesrc, and rtspsrc sources.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov-commenter
Copy link

codecov-commenter commented Nov 29, 2023

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (8002fdf) 16.34% compared to head (a9c5e48) 16.37%.
Report is 1 commits behind head on develop.

❗ Current head a9c5e48 differs from pull request most recent head a87b283. Consider uploading reports for the commit a87b283 to get more accurate results

Files Patch % Lines
src/gstreamer/gstkvssink.cpp 0.00% 6 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1113      +/-   ##
===========================================
+ Coverage    16.34%   16.37%   +0.02%     
===========================================
  Files           51       51              
  Lines         6846     6854       +8     
===========================================
+ Hits          1119     1122       +3     
- Misses        5727     5732       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Co-authored-by: Niyati Maheshwari <niyatim23@gmail.com>
Copy link
Contributor

@hassanctech hassanctech left a comment

Choose a reason for hiding this comment

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

Tested using kvssink_gstreamer_sample to successfully ingest stream and cleanly exit upon sigint with videotestsrc, filesrc, and rtspsrc sources.

Before this change does this scenario result in an error? Do we have a situtation/test where before this change we had a deadlock and after we do not? It would be a good test case to have to make sure we do not regress in the future.

@stefankiesz
Copy link
Contributor Author

@hassanctech No errors from my testing, we have a customer who states they had a deadlock before implementing this change. Let's discus setting up a test, maybe based on their implementation.

.github/workflows/ci.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@niyatim23 niyatim23 left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link
Contributor

@hassanctech hassanctech left a comment

Choose a reason for hiding this comment

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

nice!

@stefankiesz stefankiesz merged commit e7ebd3e into develop Dec 7, 2023
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants