server,tablemetadatacache: make spanStats failures more readable for system.table_metadata #134546
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-observability
Today, if a span stats request fails for a batch in update table metadata job we just write all errors encountered to the affected rows, as is.
Ex)
This is bad for a couple of reasons
We should format the errors received from the span stats call to be shorter and more useful.
One option could be:
We could go one level deeper than the node and show which spans encountered errors during the req, if any, throwing away the specific error message, e.g. (might not be possible if we need to redact the span keys)
To achieve this we'd need to modify the span stats response to track errors by node or span - today they are just an array of strings. The tablemetadata update job can then parse the returned errors into the desired format.
Jira issue: CRDB-44127
The text was updated successfully, but these errors were encountered: