-
Notifications
You must be signed in to change notification settings - Fork 871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"missing session and token" after a period of time without interacting with OrientDB #8772
Comments
@luigidellaquila Any update on this possible issue? Thanks |
@wolf4ood is working on it, I'll let you know as soon as it's fixed Thanks Luigi |
i've just proposed a fix in this PR, Once merged it will solve the issue and it will be available hopefully in 3.0.18 Thanks |
thanks @wolf4ood ! I'll keep an eye on the 3.0.18 release. |
Same thing just happened to me now, on 3.0.19, please reopen. |
OrientDB Version: 3.0.14
Java Version: 1.8
OS: Red Hat Enterprise Linux
Actual behavior
We are getting the following exception consistently when our system is not being used for while and a new request comes in that requires querying OrientDB. Before that all idle time the queries work fine. The exception is:
Not sure if this is a bug or I am confused about the java Document API described: here
The current usage of the Document API looks like this:
session = odbPool.acquire();
to get a ODatabaseSessionsession.execute("SQL", command)
to get the resultssession.close();
I thought the ODatabasePool was a pool of connections to a database. But looking at the javadoc on ODatabasePool says that it is "A Pool of databases". The documentation also mentions that we should close the database and it goes back to the pool. So I am not sure if I am hitting a bug or misusing the API.
Should I be creating a new ODatabasePool per request instead of having it as a singleton?
My goal is to have the equivalent of the
factory.setupPool(10, 30);
of the OrientGraphFactory in 2.2.X.The text was updated successfully, but these errors were encountered: