-
Notifications
You must be signed in to change notification settings - Fork 84
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
per query timeouts not respected #162
Comments
@Wijnand the issue is at: mariaex/lib/mariaex/protocol.ex Line 1055 in f4fe6f6
:infinity timeout here when doing a query/transactions. However we probably don't want to wait forever when handshaking or doing a ping . It might be helpful to see how postgrex handles this situation.
|
To be clear an |
I encountered the same problem and fixed it by setting the |
I believe I'm seeing this issue surface when modifying the schema of a larger table (~700_000 records) in an Ecto migration. The |
Have someone use mongodb have this problem : "Timeout while waiting for migration commit" |
The :timeout option parameter in DBConnection callbacks was not forwarded to the message receiving function. Instead the configured general :timeout was used. Added two testcases which will block for ~1.5 seconds. closes xerions#162
The :timeout option parameter in DBConnection callbacks was not forwarded to the message receiving function. Instead the configured general :timeout was used. Added two testcases which will block for ~1.5 seconds. closes xerions#162
For DBConnection drivers we should always pass |
@cristianberneanu Could you give me more details what you've done in the following?
Thank you very much. |
Somthing like this: |
The :timeout option parameter in DBConnection callbacks was not forwarded to the message receiving function. Instead the configured general :timeout was used. Added two testcases which will block for ~1.5 seconds. closes xerions#162 (cherry picked from commit f48e99b)
When running "ALTER TABLE" queries on a large table I discovered the given timeout was not respected. After 5 seconds I got an error: Mariaex.Protocol (#PID<0.3419.0>) disconnected: ** (Mariaex.Error) [tcp]
recv
failed with: :timeoutI did not try it with a direct connection to Mariaex, in this case I perform the queries via Ecto (and thus DBConnection).
Ecto.Adapters.SQL.query!(MyApp.Repo, "select sleep(6)", [], timeout: 7000)
I traced the given timeout option through ecto and db_connection, but MariaEx.Protocol is where its get lost., in handle_execute to be precise.
I don't know what the correct solution should be so I have no pull request for you, sorry.
The text was updated successfully, but these errors were encountered: