File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import (
20
20
"fmt"
21
21
"runtime"
22
22
"strconv"
23
+ "strings"
23
24
"time"
24
25
25
26
"github.com/cockroachdb/cockroach/pkg/util/binfetcher"
@@ -105,9 +106,16 @@ func registerVersion(r *registry) {
105
106
if err := rows .Close (); err != nil {
106
107
return err
107
108
}
108
- // Regression test for #37425.
109
- if err := c .CheckReplicaDivergenceOnDB (ctx , db ); err != nil {
110
- return errors .Wrapf (err , "node %d" , i )
109
+ // Regression test for #37425. We can't run this in 2.1 because
110
+ // 19.1 changed downstream-of-raft semantics for consistency
111
+ // checks but unfortunately our versioning story for these
112
+ // checks had been broken for a long time. See:
113
+ //
114
+ // https://github.com/cockroachdb/cockroach/issues/37737#issuecomment-496026918
115
+ if ! strings .HasPrefix (version , "2." ) {
116
+ if err := c .CheckReplicaDivergenceOnDB (ctx , db ); err != nil {
117
+ return errors .Wrapf (err , "node %d" , i )
118
+ }
111
119
}
112
120
}
113
121
return nil
You can’t perform that action at this time.
0 commit comments