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 recording segment management #8220

Merged
merged 2 commits into from Oct 18, 2023
Merged

Fix recording segment management #8220

merged 2 commits into from Oct 18, 2023

Conversation

NickM-27
Copy link
Sponsor Collaborator

@NickM-27 NickM-27 commented Oct 18, 2023

fixes #8162

With the blocking call in this queue and enough cameras with high enough detect fps (I have 7 cameras, some running at 8 detect fps with others running at 5). With a detect fps of 5 something will be put into the recordings info queue every 0.2 seconds, and with multiple cameras and a timeout of 0.1 there is an extremely high chance that frigate will essentially sit there for way too long reading from the recordings info queue because new info is constantly being put into the queue.

@netlify
Copy link

netlify bot commented Oct 18, 2023

Deploy Preview for frigate-docs canceled.

Name Link
🔨 Latest commit 44fb4da
🔍 Latest deploy log https://app.netlify.com/sites/frigate-docs/deploys/6530028a93a6ff0008c4e323

@NickM-27 NickM-27 marked this pull request as draft October 18, 2023 14:52
@NickM-27
Copy link
Sponsor Collaborator Author

NickM-27 commented Oct 18, 2023

also, I watched my segments and saw qsize errors but checking the DB and nothing before or after was missing from the DB. All segments with 0 objects / 0 motion were correct. I don't think this is an indication of an error and the logs will lead to confusion and worry when there is no reason for it.

I think these are better as debug logs to be used after a user has actually experienced missing segments

@NickM-27 NickM-27 marked this pull request as ready for review October 18, 2023 16:07
@blakeblackshear blakeblackshear merged commit 98200b7 into dev Oct 18, 2023
10 checks passed
@blakeblackshear blakeblackshear deleted the fix-missing-segment branch October 18, 2023 23:18
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.

None yet

2 participants