Skip to content

Commit

Permalink
Merge #98472 #98475
Browse files Browse the repository at this point in the history
98472: changefeedccl: enable TestChangefeedPropagatesTerminalError r=samiskin a=samiskin

Fixes: #95057

The test TestChangefeedPropagatesTerminalError no longer seems to flake after running it under stress on a GCE worker for a while, so this change re-enables it.

Release note: None

98475: kvnemesis: disable `AddSSTable` range keys r=erikgrinaker a=erikgrinaker

These trigger MVCC stats bugs in `CheckSSTConflicts`.

Touches #94141.
Touches #98473.
Touches #94876.

Epic: none
Release note: None

Co-authored-by: Shiranka Miskin <[email protected]>
Co-authored-by: Erik Grinaker <[email protected]>
  • Loading branch information
3 people committed Mar 13, 2023
3 parents 9ed78bf + 1ffbd33 + 9109678 commit 6a41a2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion pkg/ccl/changefeedccl/changefeed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6019,7 +6019,6 @@ func TestChangefeedHandlesDrainingNodes(t *testing.T) {

func TestChangefeedPropagatesTerminalError(t *testing.T) {
defer leaktest.AfterTest(t)()
skip.WithIssue(t, 95057, "flaky test")
defer log.Scope(t).Close(t)

opts := makeOptions()
Expand Down
7 changes: 6 additions & 1 deletion pkg/kv/kvnemesis/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,12 @@ func randAddSSTable(g *generator, rng *rand.Rand) Operation {
probTombstone := 0.2 // probability to write a tombstone
asWrites := rng.Float64() < 0.2 // IngestAsWrites

if r := rng.Float64(); r < 0.8 {
if true {
// TODO(erikgrinaker): Disable range keys for now since CheckSSTConflicts
// computes incorrect MVCC stats. See:
// https://github.com/cockroachdb/cockroach/issues/98473
numRangeKeys = 0
} else if r := rng.Float64(); r < 0.8 {
// 80% probability of only point keys.
numRangeKeys = 0
} else if r < 0.9 {
Expand Down

0 comments on commit 6a41a2f

Please sign in to comment.