-
Notifications
You must be signed in to change notification settings - Fork 18
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
The connection was closed before the query could be completed in #113
Comments
connection pool seems to be buggy. can't reproduce the bug and have no time and resources to do smth with that. We have fixed that with creating a proxy server of a rethinkdb, to which the client connects (proxy handles the pooling of connections) |
if I can help in any way please say. I can give you access to the server with this problem. The problem is really happening every 30 minutes. It's regular. I'm logging 'queueing' 'size' 'available-size' in my script. And this is what I see. After a while there is no more event on "available-size" and "size" Looks like it's stuck
pool queueing 12 is the number of changes() listeners. Seems correct. This is my pool configuration:
|
And this is the log just before it crashs I received the events "available-size" and "size" when I had not received it for a while
By the way, I never receive the "error" event on the pool. This error came from here:
After that, nothing to do. Just restart the process. |
I am not quite sure how to fix that but to start rewriting the whole codebase with keeping some of the logic already done. My suggestion is some things are done wrong in rethinkdbdash from which this project has started, which keeps other stuff being buggy. And because for now other things are working well for my company- I don't spend a time on it. You might wanna try the 3.x alpha version of this library, though mostly I have just fixed some coupling problems from modules perspective |
I think it's an issue with buffer and max I put back rethinkdbdash and available-size looks more correct:
(I don't have "size" event on rethinkddash", don't know why...)
Both of them with those options:
With rethinkdb-ts apparently it opens 2x more connections ? Connections pool looks more stable on rethinkdbdash |
Hello,
Working fine but after a while I've got "The connection was closed before the query could be completed in" in every request. The only way i've to make it work is to restart the process...
System info
Additional context
1x cluster of 2 servers
Is there a link with the connectPool ? Any idea ?
The text was updated successfully, but these errors were encountered: