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

Removal of collections results in foreign key violations from the maintenance thread. #206

Open
WillemElbers opened this issue Oct 21, 2022 · 0 comments

Comments

@WillemElbers
Copy link
Contributor

2022-10-21 07:23:08,617 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper#logExceptions:142] - Cannot delete or update a parent row: a foreign key constraint fails (`vcr`.`resource`, CONSTRAINT `FKEBABC40E8E3FCDB` FOREIGN KEY (`vc_id`) REFERENCES `virtualcollection` (`id`))
2022-10-21 07:23:08,617 INFO [org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl#release:208] - HHH000010: On release of batch it still contained JDBC statements
2022-10-21 07:23:08,620 ERROR [eu.clarin.cmdi.virtualcollectionregistry.VirtualCollectionRegistryMaintenanceImpl#perform:78] - unexpected error while doing maintenance
javax.persistence.RollbackException: Error while committing the transaction
	at org.hibernate.internal.ExceptionConverterImpl.convertCommitException(ExceptionConverterImpl.java:81) ~[hibernate-core-5.4.24.Final.jar:5.4.24.Final]
	at org.hibernate.engine.transaction.internal.TransactionImpl.commit(TransactionImpl.java:104) ~[hibernate-core-5.4.24.Final.jar:5.4.24.Final]
	at eu.clarin.cmdi.virtualcollectionregistry.VirtualCollectionRegistryMaintenanceImpl.purgeDeletedCollections(VirtualCollectionRegistryMaintenanceImpl.java:207) ~[classes/:?]
	at eu.clarin.cmdi.virtualcollectionregistry.VirtualCollectionRegistryMaintenanceImpl.perform(VirtualCollectionRegistryMaintenanceImpl.java:75) ~[classes/:?]
	at eu.clarin.cmdi.virtualcollectionregistry.VirtualCollectionRegistryImpl$1.run(VirtualCollectionRegistryImpl.java:96) ~[classes/:?]
...
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

1 participant