Hi,
I"m using BaseX 7.3 using the client/server interface with the org.basex.ClientSession driver.
After working for a while, BaseX starts failing with:
Fri Jul 13 14:39:23 EDT 2012: 198.82.2.41:B38B8E21E30111A56E8A828453F4E768:z_orj: Unexpected exception: org.basex.core.BaseXException: Database 'PUB_feed_libx_dot_editions_at_gmail_dot_com_core' is currently opened by another client.
org.basex.core.BaseXException: Database 'PUB_feed_libx_dot_editions_at_gmail_dot_com_core' is currently opened by another client.
at org.basex.server.ClientSession.receive(ClientSession.java:259)
at org.basex.server.ClientSession.send(ClientSession.java:246)
at org.basex.server.ClientSession.send(ClientSession.java:284)
at org.basex.server.ClientSession.create(ClientSession.java:129)
This happens when I attempt a 'CREATE DB' command.
The log shows:
14:39:23.094 [
127.0.0.1:47974]: ts_20120713_dot_143922_dot_654_feed_libx_dot_editions_at_gmail_dot_com_core CREATE DB PUB_feed_libx_dot_editions_at_gmail_dot_com_core [...]
14:39:23.098 [
127.0.0.1:47974] Error: Database 'PUB_feed_libx_dot_editions_at_gmail_dot_com_core' is currently opened by another client. 4.05 ms
I don't understand what 'locking' or "opened by another client" refers to in this context - certainly not something I'm doing. I'm exclusively using the commands documented at
http://docs.basex.org/wiki/Commands none of which is an 'open' or 'lock' command.
Again, this makes BaseX unusable - we can't create a reliable server if database operations start failing after a while.
This happened after a series of operations - it's not something I can easily create a test case for (due to the fact that BaseX's log are incomplete so I can't simply replay the dozens or so operations I did before BaseX locked up in this way.) It happens regularly, and has happened in BaseX 6.6.3 (I've waited to report it after I upgraded to 7.3).
- Godmar