OrientDB Version: 2.2 Community Edition
Java Version: 1.8
OS: Windows
Expected behavior
When calling Dispose() or Close() on an instance of ODatabase, a Connection should be closed.
Actual behavior
Unable to close/dispose a Connection for ODatabase Connection when calling Close() or Dispose().
Steps to reproduce
I am using the Using the OrientDB-NET.binary client.
These two methods of disposing a database connection does not work. The connections are not being reused and we are seeing new connection being created each time:
using (ODatabase database = new ODatabase(<database config goes here>))
{
}
or
var db = new ODatabase(<db configs goes here>);
db.Dispose();
I have noticed that in the Close() method of ODatabase it checks for the _containsConnection variable that never gets set anywhere as it was removed from the constructor. As a result, the logic in the Close() method that closes a Connection never gets called. Please advise if there is another way to close the connection.
I have submitted a pull request here: orientechnologies/OrientDB-NET.binary#144
OrientDB Version: 2.2 Community Edition
Java Version: 1.8
OS: Windows
Expected behavior
When calling
Dispose()orClose()on an instance ofODatabase, aConnectionshould be closed.Actual behavior
Unable to close/dispose a
ConnectionforODatabaseConnection when callingClose()orDispose().Steps to reproduce
I am using the Using the OrientDB-NET.binary client.
These two methods of disposing a database connection does not work. The connections are not being reused and we are seeing new connection being created each time:
or
I have noticed that in the
Close()method ofODatabaseit checks for the_containsConnectionvariable that never gets set anywhere as it was removed from the constructor. As a result, the logic in theClose()method that closes aConnectionnever gets called. Please advise if there is another way to close the connection.I have submitted a pull request here: orientechnologies/OrientDB-NET.binary#144