-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: hang during prepared query within a transaction #13468
Comments
Does it hang forever, or does something keep being retried?
|
The failure message I included does repeat ad infinitum. I'm not quite sure what I'm looking at, but the relevant logs from
|
This issue seems similar to #14548 . assigning to @jordanlewis to close |
Yes, this is fixed now. |
In certain circumstances, CockroachDB hangs in the prepare phase of a prepared query issued within a transaction with the following message:
This was discovered while investigating ActiveRecord compatibility, which issues several such queries. A complete log of a hang of this sort caused by ActiveRecord is in this gist.
I've created a test that reliably reproduces the hang here. In summary, the test issues the following statements outside of a transaction:
And then, within a transaction, prepares and immediately executes the statement and query below:
The hang occurs during the preparation of the
SELECT
query before it is executed or the transaction is committed.This is more or less a minimal reproduction - removing either of the fields in the table or reducing the join conditions or filter further prevents the hang from occurring.
The text was updated successfully, but these errors were encountered: