RunTransaction hangs if the provided function panics #386
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Reproduction:
Expected output:
followed by the process exiting.
Actual output:
followed by the process hanging indefinitely.
Note that adding a call to
tx.Rollback()
within the function passed toRunTransaction
fixes the hang. It seems that the outstanding transaction is causing the deferred call toconn.Close()
withinrunTransactionWithOptions
to hang indefinitely.The text was updated successfully, but these errors were encountered: