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
Don't the drivers listen for cancellation (and return a non-retryable error) - regardless of whether crdb supports cancellation or not? Do we need this library to react to cancellation?
Well if the driver does something for cancellation, it also does something for timeout. But the question is - do the drivers indeed care about the context? I definitely thought they did, but only for the ExecWithContext methods. We used those methods in between the retries, even if the caller's closure doesn't.
The retry loop in
ExecuteInTx
does not check ctx.Done to abort the retries if the context is cancelled.Found while working on adding query cancellation in the crdb SQL shell.
cc @andreimatei @rafiss
The text was updated successfully, but these errors were encountered: