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): handle archive remux failures #18737

Merged

Conversation

prlanzarin
Copy link
Member

What does this PR do?

  • fix(recording): handle archive remux failures
    • Recording archive may fail when remuxing invalid files from KMS or the
      new recorder - eg when the raw files are 0-byte sized.
    • This commit handles the exception raised by EDL::encode so archive keeps
      going, logs the issue as a warning and archives the problematic file anyways.
    • EDL::encode now removes the temporary file when the ffmpeg command execution
      fails - this should avoid leaving any stale files around in case of failure
    • No specific check for the nature of the error is done - the idea is that
      subsequent phases will discard or fix the files if necessary according
      to the processing scripts' necessities, making the behavior (in this
      specific scenario) similar to what it was before the archive remuxing was
      introduced.

Closes Issue(s)

Closes #18720

@prlanzarin prlanzarin added this to the Release 2.7 milestone Sep 7, 2023
@prlanzarin prlanzarin marked this pull request as ready for review September 7, 2023 13:05
Recording archive may fail when remuxing invalid files from KMS or the
new recorder - eg when the raw files are 0-byte sized.

This commit handles the exception raised by EDL::encode so archive keeps
going, logs the issue as a warning and archives the problematic file anyways.
EDL::encode now removes the temporary file when the ffmpeg command execution
fails - this should avoid leaving any stale files around in case of failure.

No specific check for the nature of the error is done - the idea is that
subsequent phases will discard or fix the files if necessary according
to the processing scripts' necessities, making the behavior (in this
specific scenario) similar to what it was before the archive remuxing was
introduced.
@sonarcloud
Copy link

sonarcloud bot commented Sep 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@github-actions
Copy link

github-actions bot commented Sep 7, 2023

Automated tests Summary

🚨 Test workflow has failed


Click here to check the action test reports

@antobinary antobinary merged commit fad5385 into bigbluebutton:v2.7.x-release Sep 7, 2023
17 of 18 checks passed
@prlanzarin prlanzarin deleted the u27/fix/remux-skip-0b branch September 7, 2023 19:34
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

3 participants