From 44a6e385492562fbf972e05357991c8754259701 Mon Sep 17 00:00:00 2001 From: Tobias Grieger Date: Thu, 16 Feb 2023 13:19:28 +0100 Subject: [PATCH] more trying to avoid hangs on assertion --- pkg/kv/kvserver/replica_application_result.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/kv/kvserver/replica_application_result.go b/pkg/kv/kvserver/replica_application_result.go index b7a4355192b3..f0c28e21bafd 100644 --- a/pkg/kv/kvserver/replica_application_result.go +++ b/pkg/kv/kvserver/replica_application_result.go @@ -13,6 +13,7 @@ package kvserver import ( "context" "math/rand" + "os" "github.com/cockroachdb/cockroach/pkg/kv/kvserver/kvserverbase" "github.com/cockroachdb/cockroach/pkg/kv/kvserver/kvserverpb" @@ -133,7 +134,8 @@ func (r *Replica) prepareLocalResult(ctx context.Context, cmd *replicatedCmd) { _, inMap := r.mu.proposals[cmd.ID] if inMap { // NB: intentionally still holding lock, or access to `cmd.proposal` is unsafe. - log.Fatalf(ctx, "failed reproposal unexpectedly in proposals map: %s", dumpCmdInfo(ctx, r.store.TODOEngine(), cmd)) + log.Warningf(ctx, "failed reproposal unexpectedly in proposals map: %s", dumpCmdInfo(ctx, r.store.TODOEngine(), cmd)) + os.Exit(123) } r.mu.RUnlock() } else {