OrientDB connections not getting closed on close API #10039
-
I am facing issue with orientdb and getting below exception.
After executing code, I found that on pool.close() or oDatabaseDocument.close(); no binary listeners are getting closed. This, I verified from orientdb studio dashboard. These connections are getting released only after above code terminates from JVM. Is there any solution for this, how to close these connections? Because after some time orientdb starts rejecting incoming connections, and then eventually orientdb hangs and need to be restarted. This case is occurring on REDHAT machine where above code is executed and latest Orientdb is on any OS. Orientdb Version 3.2.23 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, could you use instead OrientDB orientDB = new OrientDB("embedded:/path/to/databases/", OrientDBConfig.default());
try (ODatabaseSession session = orientDB.open("database", "user", "password")) {
}
orientDB.close(); the OPartitionedDatabasePool has been deprecated and require open and close of the session to be done exactly on the same thread. Regards |
Beta Was this translation helpful? Give feedback.
Hi,
could you use instead
ODatabasePool
or even not use the pool and use the OrientDB context like:the OPartitionedDatabasePool has been deprecated and require open and close of the session to be done exactly on the same thread.
Regards