-
Notifications
You must be signed in to change notification settings - Fork 5
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
In RequestReport
, use the hashstore-java
library to retrieve a system metadata document or metadata eml document for a pid
#464
Comments
Update:
|
@doulikecookiedough I quickly looked over your changes -- in general looking good, but I have 2 high-level suggestions:
In addition, in my quick skim of that branch, I noticed some odd changes, like having to set an unusual user agent, which is also hardcoded in sha 6a9ac1d -- why is this needed, and it seems like very much the wrong place to set a user agent -- we probably now have different user agents for different requests from metadig. If it needs to be changed (which would be strange), can we do it in one central location? Finally, @jeanetteclark, could you please give all of these changes a thorough code review before they get merged into develop? |
I reverted the User-Agent commit since I don't think that is causing the 403 error. Regarding the original issue - this is going to require more thought than what is currently implemented. Metadig runs on a bunch of different member nodes, in addition to the CN, for metadata checks. Only one of those nodes will have a hashstore configured. So the code will need to know what nodes are configured for hashstore and run hashstore calls on those, and dataone API calls for the rest. I actually wasn't planning on replacing this with hashstore at all, since there is only one API call for each suite that is run, to get the sysmeta and object for the metadata object. IMO this isn't worth refactoring at the moment since it isn't going to affect performance at all. Eventually we will need to re-work node related configuration anyway (see #374). I think we should keep focusing on the data suite side of things and leave this alone for now, revisiting when we have a better idea of how we can configure multiple nodes with multiple store types. |
Begin the process of removing
metadig-engine
API calls to the CN or MN for retrieving system metadata and EML metadata documents for a given pid by refactoring theRequestReport
class. For now, retain the existing behavior of themetadig-engine
for public datasets:NotAuthorized
exception is thrown while accessing system metadata or EML documents via CN/MN, fallback logic will attempt to retrieve the data fromHashStore
.HashStore
location fordev.nceas.ucsb.edu
on the dev k8s cluster.This first step will address and resolve:
Branch:
feature-hashstore-libimport
The text was updated successfully, but these errors were encountered: