-
Notifications
You must be signed in to change notification settings - Fork 37.7k
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
Embedded database support in trouble shutting down Derby [SPR-7602] #12258
Comments
Oliver Drotbohm commented Does that occur repeatedly or just occasionally? In a test case or production? The Derby requires some kind of unusual shutdown process that throws an exception to indicate that it was shut down correctly. The special exception seems to indicate the database is gone entirely already, which seems a little odd |
Benson Margulies commented I have a unit test that uses the Spring JUnit test runner. The app context for that test uses jdbc:embedded-database. Every time I run the unit test I get this backtrace/warning. |
Benson Margulies commented The problem here is cause, I think, by the fact that I have two embedded databases in my context,and Spring names them both 'testdb'. |
Benson Margulies commented And there seems to be no provision for 'setName' in the jdbc:embedded-database element. |
Oliver Drotbohm commented In general, with 10.6 Derby has changed the way to shutdown and purge in memory databases. So there's a compatibility issue of the embedded database support for Derby 10.6. and later. I have a fix for that issue here locally but we still have to negotiate in which version this will be applied (depends on how far we're towards the 3.0.5 release already). Having multiple embedded databases is currently not supported via the namespace but I think we could use the bean id as database name if set. Would you mind opening another ticket for this? |
Oliver Drotbohm commented Thanks for opening the ticket. I'll have a look at it. Meanwhile the fix for the general 10.6 issue should be available in tonights snapshot. Feel free to give it a try. |
Benson Margulies commented The 10.6 problems don't effect reading a clob, do they? Just shutdown? |
Benson Margulies opened SPR-7602 and commented
I'm using the embedded database mechanism with type="DERBY" and derby 10.6.1.0. It works, but on the way out the door, I get the following rather loud set of complaining.
Affects: 3.0.4
Attachments:
Issue Links:
Referenced from: commits b467f2c
The text was updated successfully, but these errors were encountered: