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: Preservation package check fails when multiple copies of an item are already preserved (Issue 108) #109

Conversation

HafeezOJ
Copy link
Collaborator

When multiple copies of a preserved item exist in a remote storage, hash comparison is performed against just one copy during preservation package check (#102) which could lead to an assumption that the eventual preservation package does not exist and the item is sent for processing rather than been skipped.

This PR creates a list of an item's preserved copies hashes if any exist and the current hash is compared against hashes of all existing preserved copies. The item will be skipped if a match is found. A warning will be logged if multiple preserved copies are found for an item.

@HafeezOJ HafeezOJ changed the title Fix: Preservation package check fails when multiple copies of an item are already preserved Fix: Preservation package check fails when multiple copies of an item are already preserved (Issue 108) Oct 13, 2024
@HafeezOJ HafeezOJ requested a review from zoidy October 15, 2024 17:25
@zoidy zoidy merged commit ce74245 into main Oct 15, 2024
1 check passed
@zoidy zoidy deleted the 108-bug-preservation-package-check-fails-when-multiple-copies-of-an-item-are-already-preserved branch October 15, 2024 20:28
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.

Bug: Preservation package check fails when multiple copies of an item are already preserved
2 participants