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

fix DatabaseConstraint exceptions upon DB Cleanup and pathological Biomodel saves. #840

Open
Tracked by #1032
jcschaff opened this issue Mar 20, 2023 · 1 comment · May be fixed by #841
Open
Tracked by #1032

fix DatabaseConstraint exceptions upon DB Cleanup and pathological Biomodel saves. #840

jcschaff opened this issue Mar 20, 2023 · 1 comment · May be fixed by #841
Assignees

Comments

@jcschaff
Copy link
Member

Background - two problems - one on save, one on delete/cleanup

  • ~260 times a day, the health monitor saves the exact same BioModel (same XML) with cleared biomodel key.
  • incomplete periodic cleanup of orphaned records (once a day).
    • cbit.vcell.modeldb.DatabaseServerImpl.cleanupDatabase(DatabaseServerImpl.java:133) fails with a complementary failure (java.sql.SQLIntegrityConstraintViolationException: ORA-02292: integrity constraint (VCELL.SYS_C0022037) violated - child record found)
    • the order of the delete operations should have prevented such a failure.
@jcschaff jcschaff added VCell-7.5.0 Needed for Release 7.5 VCell-7.5.1 labels Mar 20, 2023
@jcschaff jcschaff self-assigned this Mar 20, 2023
@jcschaff
Copy link
Member Author

Strategy

  • test BioModel saves with randomizedBioModel keys to try to make the save problem more reproducible.
  • review DatabaseServerImpl.cleanupDatabase() to look for problems and add logging as needed to help diagnose.

@jcschaff jcschaff moved this to In Progress in vcell development Mar 20, 2023
@jcschaff jcschaff linked a pull request Mar 20, 2023 that will close this issue
@jcschaff jcschaff linked a pull request Mar 20, 2023 that will close this issue
@CodeByDrescher CodeByDrescher moved this from Active to Queued in vcell development Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Queued
Development

Successfully merging a pull request may close this issue.

2 participants