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

[hma] add recovery from lobj failure #1674

Merged
merged 3 commits into from
Oct 30, 2024

Conversation

Dcallies
Copy link
Contributor

Summary

Fixes an issue reported in #1673

My best guess on how this happened is because of a partial failure on deletion - I had thought that this would be enforced by transactions, but it appears in production it's possible object unlink can go through without the object being fully deleted.

It might also be possible to add this with a listener of some kind, but making this segment a little more defensive might be overall a good idea in general.

Test Plan

Reproduced the issue in a unittest, then make the fix.

Copy link
Contributor

@prenner prenner left a comment

Choose a reason for hiding this comment

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

ty for doing this!

@Dcallies Dcallies merged commit 5c47b24 into facebook:main Oct 30, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants