-
Notifications
You must be signed in to change notification settings - Fork 495
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
7000 mpconfig rserve #8830
7000 mpconfig rserve #8830
Conversation
1. Instead of reading the configuration from system properties only, switch to using MPCONFIG and JvmSettings fluent API. 2. Instead of saving the configuration in a static variable, retrieve the config from the constructor. This has 2 advantages: 1) no worries about execution order and MPCONFIG not yet ready, 2) update the readers with new config settings when changed (no need to restart).
The docs said the default is "/tmp/Rserve", while the code had "/tmp". Changing the code default to the documented one.
27b9287
to
507ae82
Compare
added to sprint Dec 15, 2022 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't test this but the code changes make sense, all the API tests are passing, and the docs look good: https://dataverse-guide--8830.org.readthedocs.build/en/8830/installation/config.html#dataverse-rserve-host
Moving to QA.
@poikilotherm @pdurbin Not sure how this should fail but previously, it uploaded the original file. Now it throws a server log error but leaves the user on the grayed out "action" screen and if you click on it, shows upload page with no files, so a silent error. It might be due to the type of failure -a type validation issue: [2022-12-19T15:46:52.833+0000] [Payara 5.2022.3] [WARNING] [] [javax.enterprise.ejb.container] [tid: _ThreadID=96 _ThreadName=http-thread-pool::jk-connector(5)] [timeMillis: 1671464812833] [levelValue: 900] [[ javax.ejb.EJBException: java.lang.NumberFormatException: For input string: "x6311" |
Hey @kcondon this is really strange... where is that "x" coming from? It's clearly not added by the code... Is there some strange setting for the port in your domain configuration? |
...ain/java/edu/harvard/iq/dataverse/ingest/tabulardata/impl/plugins/rdata/RDATAFileReader.java
Outdated
Show resolved
Hide resolved
So to keep track:
|
Need input for (2) from @landreev @pdurbin et al. Thanks y'all for your patience and thorough testing! |
@poikilotherm can you please resolve the merge conflicts? Thanks! |
…SS#7000 When an invalid port was set, which cannot be transformed to an integer, the JSF page would kind of freeze: it leaves the user on the grayed out "action" screen and if you click on it, shows upload page with no files, so a silent error. By defaulting to 6311 also for this case and logging an error, this should improve the UX, but leave a hint for an admin in the logs.
Thanks for going through all the trouble with me @kcondon! Glad this is done. Another step! ❤️ |
What this PR does / why we need it:
Now also changing the Rserve configuration to be MPCONFIG enabled. Also making sure updated settings would be used for every new file read during ingest.
Which issue(s) this PR closes:
None.
Special notes for your reviewer:
None?
Suggestions on how to test this:
There are no tests. How have test for Rserve integration been done so far?
Does this PR introduce a user interface change? If mockups are available, please link/include them here:
Nope.
Is there a release notes update needed for this change?:
IMHO no.
Additional documentation:
Doc updates included.