Any insights on the issue with BaseX randomly locking databases and then failing CREATE DB/ALTER DB operations?
I noticed your mail, but it's difficult to give a general assumption on what might be the problem. I'm aware of many existing use cases in which databases are created and dropped, and queries are sent.
As databass are implicitly locked if they are accessed by a client [1], you may need to explicitly close sessions in order to avoid that opened databases will not be properly closed.
If you should manage to create a test case, that would be great. Christian
[1] http://docs.basex.org/wiki/Transaction_Management#Locking