cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
30.16k stars 3.82k forks source link

sql: panic when decoding table stats can crash the process #135940

Open rytaft opened 13 hours ago

rytaft commented 13 hours ago

We have observed occasional issues in the past where attempting to decode table statistics histograms causes a panic (e.g., https://github.com/cockroachdb/cockroach/issues/128876). We catch panics in some parts of the stats cache, but there are some paths through the stats cache where panics are not caught. This causes certain operations that access the stats cache to crash the cockroach process. We should add panic catching for these alternate paths.

Jira issue: CRDB-44798