Open RaduBerinde opened 4 years ago
Note: when we do this, we should also make sure we catch any panics that happen for these statements. We had a bug where SHOW STATISTICS could panic, and it was bringing down the node.
We have marked this issue as stale because it has been inactive for 18 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to CockroachDB!
A user ran into an issue where they tried to collect statement diagnostics but the schema queries were taking too long and stalling the original query (which was getting canceled). We should do this collection asynchronously. We can't do it asynchronously for
EXPLAIN ANALYZE (DEBUG)
of course, so we'll need to have two codepaths.CC @andreimatei
gz#5473
Jira issue: CRDB-4237