Skip to content

Commit

Permalink
even harder
Browse files Browse the repository at this point in the history
  • Loading branch information
tbg committed Feb 16, 2023
1 parent 44a6e38 commit 12bc72e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/kv/kvserver/replica_application_state_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"path/filepath"
"reflect"
"strings"
"time"

"github.com/cockroachdb/cockroach/pkg/kv/kvserver/apply"
"github.com/cockroachdb/cockroach/pkg/kv/kvserver/closedts/ctpb"
Expand Down Expand Up @@ -169,6 +170,10 @@ func init() {
}

func dumpCmdInfo(ctx context.Context, eng storage.Engine, cmd *replicatedCmd) (s string) {
defer time.AfterFunc(5*time.Second, func() {
fmt.Fprintln(os.Stderr, "timed out during assertion")
os.Exit(123)
}).Stop()
defer func() {
if r := recover(); r != nil {
s = fmt.Sprint(r)
Expand Down

0 comments on commit 12bc72e

Please sign in to comment.