Hi,
Version : 2.0.13
Mode : Document
Storage Type : plocal
Language : Java
Sample code :
OPartitionedDatabasePoolFactory poolFactory = new
OPartitionedDatabasePoolFactory();
OPartitionedDatabasePool pool = poolFactory.get("plocal:testdb",
"administrator", "administrator");
ODatabaseDocumentTx db = pool.acquire();
db.close();
pool.close();
After closing the pool, in the later stage of application; getting the pool
from the same factory and trying to acquire a new connection reports "Pool
is closed"
java.lang.IllegalStateException: Pool is closed
at
com.orientechnologies.orient.core.db.OPartitionedDatabasePool.checkForClose(OPartitionedDatabasePool.java:373)
at
com.orientechnologies.orient.core.db.OPartitionedDatabasePool.acquire(OPartitionedDatabasePool.java:238)
The OPartitionedDatabasePoolFactory retains the pool instance and returns
the same, which was closed, as PoolIdentity is same.
Questions:
How to reload the database back when required using the factory?
Is there a different approach other than, using
OPartitionedDatabasePoolFactory or writing our own factory implementation?
Thanks,
Rayees
--
---
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.