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

Error handling when indexing DataSpace datasets #622

Merged
merged 1 commit into from
May 3, 2024
Merged

Conversation

hectorcorrea
Copy link
Member

@hectorcorrea hectorcorrea commented May 3, 2024

This PR undoes a commit that I did as part of this PR: https://github.com/pulibrary/pdc_discovery/pull/620/files

Catching the DataSpace exception has the unintended consequence of continuing the indexing process (which sounds like a good idea) but that results in a new index with no DataSpace records.

In this PR I am letting the exception flow (as it did before) which stops the indexing process and keeps the previous data in place. Not ideal but all in all a better outcome than blowing away the DataSpace records every time DataSpace is not available during the reindex process, which sadly is quite common.

@bess bess merged commit d2b3dc5 into main May 3, 2024
6 checks passed
@bess bess deleted the index-error-handling branch May 3, 2024 16:49
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.

2 participants