diff --git a/pkg/kv/kvserver/replica_command.go b/pkg/kv/kvserver/replica_command.go index d0dfdbea5c1f..d3536f9e803e 100644 --- a/pkg/kv/kvserver/replica_command.go +++ b/pkg/kv/kvserver/replica_command.go @@ -525,6 +525,7 @@ func (r *Replica) executeAdminCommandWithDescriptor( // that suggested this. retryOpts.RandomizationFactor = 0.5 var lastErr error + splitRetryLogLimiter := log.Every(10 * time.Second) for retryable := retry.StartWithCtx(ctx, retryOpts); retryable.Next(); { // The replica may have been destroyed since the start of the retry loop. // We need to explicitly check this condition. Having a valid lease, as we @@ -552,6 +553,9 @@ func (r *Replica) executeAdminCommandWithDescriptor( !errors.HasType(lastErr, (*roachpb.AmbiguousResultError)(nil)) { break } + if splitRetryLogLimiter.ShouldLog() { + log.Warningf(ctx, "retrying split after err: %v", lastErr) + } } return roachpb.NewError(lastErr) }