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(offline): Clean up orphaned segments on abort #4177

Merged
merged 2 commits into from
Apr 30, 2022

Conversation

joeyparrish
Copy link
Member

If a storage operation is aborted (via API, not via closing the page),
this will now be cleaned up from the database. More work is needed to
find and remove orphaned segments in the database.

Related to #4166 and follow-up to PR #4176.

If a storage operation is aborted (via API, not via closing the page),
this will now be cleaned up from the database.  More work is needed to
find and remove orphaned segments in the database.

Related to shaka-project#4166 and follow-up to PR shaka-project#4176.
* @param {number} manifestId
* @param {!shaka.extern.ManifestDB} manifestDB
Copy link
Contributor

Choose a reason for hiding this comment

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

The JSDoc needs to be updated again, now that this no longer loads the manifest.

Copy link
Member Author

Choose a reason for hiding this comment

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

No, this is accurate. I added the parameter. Before, it was loaded inside the method. Now, it is provided by the caller, who already had a copy. The caller's copy is updated in-place as well as stored in the DB.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, wait, I see what you mean now. Yes, you're right. I'll take care of that.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

Copy link
Contributor

Choose a reason for hiding this comment

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

I wish Github let me comment on lines that the PR didn't change. It'd make this kind of thing so much clearer.

@joeyparrish joeyparrish merged commit c07447f into shaka-project:main Apr 30, 2022
@joeyparrish joeyparrish deleted the speed-offline-storage branch April 30, 2022 03:11
@avelad avelad added this to the v4.0 milestone May 4, 2022
joeyparrish added a commit that referenced this pull request May 17, 2022
If a storage operation is aborted (via API, not via closing the page),
this will now be cleaned up from the database.  More work is needed to
find and remove orphaned segments in the database.

Related to #4166 and follow-up to PR #4176.
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants