util/must: merge with logcrash
assertions
#107428
Labels
A-testing
Testing tools and infrastructure
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-testeng
TestEng Team
Currently, the
logcrash
package has some functionality that overlapsmust
:ReportOrPanic
which panics in non-release builds and otherwise sends a Sentry notification, and the cluster settingdebug.panic_on_failed_assertions
which makesReportOrPanic
always panic.ReportOrPanic
should be replaced bymust
assertions. The cluster setting may either be replaced entirely byCOCKROACH_FATAL_ASSERTIONS
, ormust
may be changed to respect the cluster setting instead. Using a cluster setting requires propagating cluster settings tomust
, and won't work for assertion failures that happen before KV is functional and cluster settings are propagated. The environment variable, on the other hand, requires a node restart.My preference is for the environment variable: we rarely, if ever, expect users to enable fatal assertions, so the inconvenience of a node restart is not a big problem, and environment variables are more reliable and easier to propagate.
Jira issue: CRDB-30038
The text was updated successfully, but these errors were encountered: