You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apply: improve Asserter logging and error handling
Previously, the `Asserter` would panic if it found any discrepancy. This
usually works as expected and the panic message in the test failure
(e.g. kvnemesis). However, it's possible that the goroutine that
invoked the `Asserter` is in a part of the code that doesn't
check/recover from panics (e.g. the `defer` logic in
`processRaftSnapshotRequest`).
This commit changes the panics to `log.Fatalf`s to have a better chance
of logging these. It also improves one of the log messages in the
`Asserter` to print out the log state in case of a discrepancy.
Closes: cockroachdb#157253
Release note: None
0 commit comments