-
Notifications
You must be signed in to change notification settings - Fork 9
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
Errors not reported if mysql insert script fails #13
Comments
The failure was due to incorrect username / password in application.properties. After correction the import succeeded. However, the status code returned from the process execution should be checked, and an error message should be output to the user if the mysql program exits with a non-zero status code. [Or .. we should adjust the code to do true database interactions instead of the external .sql scripts] |
I also added the exit status ;) |
Exit status checks are working, but the program is continuing execution after the error is detected. I modified the database creation script to have an incorrect fieldname in the pdb_ensembl_alignment table. Then I ran: java -jar -Xmx7000m pdb-alignment-pipeline/target/pdb-alignment-pipeline-0.1.0.jar init The output is below. An insert script was generated, failed to execute, an error condition was reported on the console and in the log, but the program continued to execute. If the execution of any insert script execution fails, the program should stop at that point, without deleting the insert script or doing any other processing. It should report that it stopped because of an error during <description_of_stage_of_processing>. 2016-08-12 18:05:32 INFO PdbScriptsPipelineMakeSQL:123 - [BLAST] Insert statements after parsing 0th xml : 26706 |
when running the init step (java -jar -Xmx7000m target/pdb-alignment-pipeline-0.1.0.jar init) if the import of alignment records fails (for instance if there is no database present or no tables created or if the data does not properly it into the created table schema) no error report is given.
If import fails, an error message must be returned to the user and the application must exit with a non-0 status code.
The text was updated successfully, but these errors were encountered: