You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 2.2.x we do not have the same issues if you are getting this error is probably because you are executing some database operations in a live query/non blocking/asyn callback.
Hi @tglman ,
yes i am runing another query while async call is working .. for example while reading a post , reading its comments on asyncquery . how to do it ? getting new connection for every async query ? . any idea how to do that .
OrientDB Version: 3.0.0-RC2
Java Version: 9.0.4
OS: client: win10, orient: dockerized ubuntu
Expected behavior
Open connection after database repair
Actual behavior
exception.ODatabaseException: Cannot execute the request because an asynchronous operation is in progress. Please use a different connection
Steps to reproduce
I start this application and see how it runs in loop outputing "session: ...." and "rs:......".
At some moment I turn off orient db instance.
I see
OIOException: Error on connecting to 127.0.0.1:2424/demodb
but just once. On next iteration I see
ODatabaseException: Cannot execute the request because an asynchronous operation is in progress. Please use a different connection
It contradicts with my intuition about expected behavior in such case.
I guess reasonable expectations are following:
As soon as orient is restored connection should be re-established.
If connection is dropped then fact of drop should be detected and session on client side should not stay open forever.
Even if session is kept open then new connection should be initiated as part of pool logic. At least until
pool size is exhausted.
BTW, if I start application when orient is down,and then turn it on again I see that connection is established.
Thanks in advance,
Sergey
The text was updated successfully, but these errors were encountered: