Hi guys,
I have a multithread application that uses the pool to handle db
connections (OrientDB v 1.7).
The application works fine on normal load. I have noticed some problem
testing it with a heavy load process (multiple threads hitting the db).
Basically, after a while I start seeing the following exceptions:
*Caused by: com.orientechnologies.common.concur.lock.OLockException: Cannot
release a database URL not acquired before. URL: myapp$clients$236*
*at
com.orientechnologies.orient.core.db.ODatabasePoolAbstract.release(ODatabasePoolAbstract.java:211)
[orientdb-core-1.7.jar:1.7]*
*at
com.orientechnologies.orient.core.db.ODatabasePoolBase.release(ODatabasePoolBase.java:167)
[orientdb-core-1.7.jar:1.7]*
*at
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTxPooled.close(ODatabaseDocumentTxPooled.java:122)
[orientdb-core-1.7.jar:1.7]*
I can't create a test case to reproduce it but the logic is similar to:
ODatabaseDocumentTx db0 = null;
try {
db0 = ODatabasePool.acquire(dbName, username, password);
// do stuff
} finally {
if (db0 != null) {
db0.close();
}
}
Any idea?
Thanks,
Fabrizio
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.