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

Object endpoint raise error code on DOI plugin when no DOI found #1781

Closed
vchendrix opened this issue Jan 18, 2024 · 0 comments
Closed

Object endpoint raise error code on DOI plugin when no DOI found #1781

vchendrix opened this issue Jan 18, 2024 · 0 comments
Assignees
Milestone

Comments

@vchendrix
Copy link
Collaborator

This is related to NCEAS/metacatui#2167

We had an issue this week where a user received an error when they were saving a dataset and the resource map was not created in metacatUI.

The confluence of issues

  1. data.ess-dive.lbl.gov was inundated ( and still currently is) with indexing tasks for replication verifications. There are lots of dirtySystemMetadata requests in the apache logs
  2. The user received an error in the UI when saving. Their metadata changes where updated but the resource map failed to create. They emailed us with an urgent request to fix due to the fact that they told 150+ people the data was ready
  3. We repaired the resource map from the backend by associating the data files from listed in the metadata file which also matched the previous version of the dataset
  4. We found a draft dataset record for the metadata file that received the error the told us the doi for the updated dataset could not be found.

EML draft for ess-dive-e976198fe417dbb-20231222T191240371(WHONDRS River Corridor Dissolved Oxygen, Temperature, Sediment Aerobic Respiration, Grain Size, and Water Chemistry from Machine-Learning-Informed Sites across the Contiguous United States (v3)) by Brieanne Forbes. This EML had the following save error: MNodeService.update - The object ess-dive-e976198fe417dbb-20240109T184353161 has been saved successfully on Metacat. However, the new metadata can't be registered on the DOI service: OSTIElinkService.getMetadata - the reponse is blank. So we can't find the identifier 10.15485/1923689, which type is doi ...

  1. We manually looked up the doi in OSTI to confirm that is was there. It was.
  2. I can only assume that the Metacat was overloaded with system metadata updates and this query failed to return a result due to the load in some way.

This particular error is of no concern to the user and should not have affected the experience saving (since the metadata was updated anyway). We already receive system emails for these errors.

Solution Requested
In the case where a DOI is not found and the metadata is updated a warning message should be returned with and HTTP status of 200 or some other 2XX code that signifies a successfully updated

@taojing2002 taojing2002 self-assigned this Jan 22, 2024
@taojing2002 taojing2002 added this to the 3.0.0 milestone Jan 22, 2024
taojing2002 added a commit that referenced this issue Jan 29, 2024
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

No branches or pull requests

2 participants