contextutil: RunWithTimeout
error message is misleading
#79424
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
contextutil.RunWithTimeout
gives error messages like:Where
1h0m0s
is the timeout passed toRunWithTimeout()
. However, this is misleading, because either the caller or callee can have set their own context timeout that is smaller than the timeout given toRunWithTimeout
.This is even worse in older releases, where the "(took 10s)" part is not present, leading readers to believe the operation actually took 1 hour.
Jira issue: CRDB-14833
The text was updated successfully, but these errors were encountered: