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

Bug: Certain errors cause bags to be created and uploaded anyways #60

Closed
1 task done
zoidy opened this issue Aug 10, 2023 · 0 comments · Fixed by #63
Closed
1 task done

Bug: Certain errors cause bags to be created and uploaded anyways #60

zoidy opened this issue Aug 10, 2023 · 0 comments · Fixed by #63
Labels
bug Something isn't working

Comments

@zoidy
Copy link
Collaborator

zoidy commented Aug 10, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Description of the bug

The ReBACH specification states that the bag creation process should be atomic (all steps must succeed or else the bag creation process should error out for that item). Refer to 4.4.1 steps 6 and 7 of the spec.

When there is an error copying curation files from curation storage, the software currently displays an error however bag creation continues and the incomplete bag is uploaded. Instead, bag creation should fail and should be deleted.

Steps To Reproduce

Pick a dataset to upload. Then,

  • Remove read permissions of one or more files in the UAL_RDM folder
  • Run ReBACH
  • Observe errors in the log after the line :INFO:Log - Copying files to preservation folder.
  • Note that the bag creation and upload process continues
@zoidy zoidy added the bug Something isn't working label Aug 10, 2023
@zoidy zoidy linked a pull request Aug 17, 2023 that will close this issue
yhan818 added a commit that referenced this issue Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant