Skip to content

Commit

Permalink
Merge #58387
Browse files Browse the repository at this point in the history
58387: kvserver: downgrade a potentially racey assertion r=tbg a=irfansharif

Touches #58378; a stop-gap while we investigate.

Release note: None

Co-authored-by: irfan sharif <[email protected]>
  • Loading branch information
craig[bot] and irfansharif committed Jan 4, 2021
2 parents 7d60e44 + ef64519 commit fb71ee4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/kv/kvserver/replica_proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,10 @@ func (r *Replica) evaluateProposal(
activeVersion := r.ClusterSettings().Version.ActiveVersion(ctx).Version
migrationVersion := clusterversion.ByKey(clusterversion.TruncatedAndRangeAppliedStateMigration)
if migrationVersion.Less(activeVersion) {
log.Fatalf(ctx, "not using applied state key in v21.1")
// TODO(irfansharif): This was originally a fatal, which seems
// to have been a racey assertion (see #58378). We've downgraded
// it to an error to not trip up builds while we investigate.
log.Error(ctx, "not using applied state key in v21.1")
}
// The range applied state was introduced in v2.1. It's possible to
// still find ranges that haven't activated it. If so, activate it.
Expand Down

0 comments on commit fb71ee4

Please sign in to comment.