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

GDCC/8604 Improve archiver error handling #8612

Conversation

qqmyers
Copy link
Member

@qqmyers qqmyers commented Apr 13, 2022

What this PR does / why we need it: This PR fixes a thread management issue that allowed partial bags to be generated in cases where, for example, datasets were missing physical files. As described in the issue, the new code uses thread.join to assure the main thread gets an accurate success/fail report from the bag generation thread.

The PR also includes changes to the DuraCloud archiver class that changes the folder structure created in the DuraCloud service to add datasets within the same collection to the same DuraCloud 'space'. While transparent to Dataverse, this change makes it easier for an admin to manage batch archiving (see #8610) with Duracloud by reducing the number of manual operations required on that side. The DuraCloud archiver also gets the update from the Google archiver to wait for zipped datafile bytes to be ready before starting the transfer (see large comment in source).

Finally, as part of syncing the DUraCloud and Google ASrchivers and preparing for an S3 archiver, this PR includes refactoring to put the basic setup of the bag generation thread into the abstract base class.

Which issue(s) this PR closes:

Closes #8604

Special notes for your reviewer: These changes have been tested at TDL and QDR (DuraCloud and Google respectively) (albeit in combination with other PRs/with the QDR fork).

Suggestions on how to test this: Not sure there is much that can be tested without setting up Google/DuraCloud. The changes can be demonstrated by TDL/QDR. Another PR(s) are planned as part of DataCommons to apply the same threading technique to storage in S3/Harvard DRS where it should be easier to confirm that the new code works, e.g. in cases where datasets are missing physical files.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?: see #8611

Additional documentation:

@qqmyers qqmyers added the GDCC: TDL supported by Texas Digital Library label Apr 13, 2022
@qqmyers qqmyers added HDC: 3a Harvard Data Commons Obj. 3A GDCC: QDR of interest to QDR labels Apr 13, 2022
@coveralls
Copy link

coveralls commented Apr 13, 2022

Coverage Status

Coverage decreased (-0.003%) to 19.716% when pulling a88ac6c on GlobalDataverseCommunityConsortium:GDCC/8604-improve_archiver_error_handling into 4d10da5 on IQSS:develop.

@qqmyers qqmyers added the HDC Harvard Data Commons label May 24, 2022
@sekmiller sekmiller self-assigned this Jul 12, 2022
Copy link
Contributor

@sekmiller sekmiller left a comment

Choose a reason for hiding this comment

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

This probably needs to be updated from Dev before final testing

@sekmiller sekmiller removed their assignment Jul 13, 2022
@qqmyers
Copy link
Member Author

qqmyers commented Jul 13, 2022

As far as I can see it is up-to-date w.r.t. develop.

@kcondon kcondon self-assigned this Jul 14, 2022
@kcondon kcondon merged commit 567e506 into IQSS:develop Jul 18, 2022
@pdurbin pdurbin added this to the 5.12 milestone Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GDCC: QDR of interest to QDR GDCC: TDL supported by Texas Digital Library HDC Harvard Data Commons HDC: 3a Harvard Data Commons Obj. 3A
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connection interruptions during Bag generation can cause partial bags to be stored.
6 participants