import: want better errors than context canceled #38222
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
no-issue-activity
T-disaster-recovery
X-stale
When an
IMPORT
statement fails for whatever reason, we seem to commonly only get acommunication error: rpc error: code = Canceled desc = context canceled
error as a result of that query.Examples just from today:
#38131 (comment)
#38136 (comment)
That error is useless. It comes from the DistSQL inbound stream processor which is interrupted by the ctx cancelation.
One way or another, we should try to get our hands on the error that caused this cancelation. Perhaps the situation will improve with @jordanlewis's work on providing causes for the cancelation, but I'm not too hopeful in this case since here the original error is probably very far removed from this cancelation - probably on another node, and gRPC is probably involved in canceling some contexts (in fact I'm not sure how this ctx canceled error even makes its way back to the gateway).
What seems to me like a promising direction is trying to add smarts at the
DistSQLReceiver
level or above for prioritizing some errors over other when a query receives multiple errors - and in particular de-prioritizing the context canceled errors.@dt do you want this one?
Jira issue: CRDB-5644
The text was updated successfully, but these errors were encountered: