Skip to content

Commit 6b3da84

Browse files
craig[bot]stevendanna
andcommitted
157056: roachtest: temporarily disable latency assertions in rangefeed tests r=pav-kv a=stevendanna I think we need a longer lead-up period before we can do comparisons. I'll test this locally some more and turn it back on once it is more stable. Fixes cockroachdb#157046 Fixes cockroachdb#157002 Release note: none Co-authored-by: Steven Danna <[email protected]>
2 parents 2c3b545 + f856349 commit 6b3da84

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pkg/cmd/roachtest/tests/kv_rangefeed.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ type kvRangefeedTest struct {
6262
// catch up in the given configuration. We don't expect under-provisioned
6363
// changefeeds to catch up.
6464
expectChangefeedCatchesUp bool
65+
66+
// latencyAssertions controls whether we should assert that the foreground
67+
// latency was not impacted during the test.
68+
latencyAssertions bool
6569
}
6670

6771
const (
@@ -288,7 +292,7 @@ func runKVRangefeed(ctx context.Context, t test.Test, c cluster.Cluster, opts kv
288292
//
289293
// NB: If this proves flakey, feel free to change it. We haven't yet put much
290294
// thought into what the right statistic here would be.
291-
if opts.changefeedDelay > 0 {
295+
if opts.changefeedDelay > 0 && opts.latencyAssertions {
292296
preChangefeedp99ticks := p99sBetween(metrics["write"], 0, opts.changefeedDelay)
293297
postChangefeedp99ticks := p99sBetween(metrics["write"], opts.changefeedDelay, time.Duration(math.MaxInt64))
294298

@@ -417,6 +421,8 @@ func registerKVRangefeed(r registry.Registry) {
417421
expectChangefeedCatchesUp: true,
418422
changefeedDelay: 1 * time.Minute,
419423
catchUpInterval: 5 * time.Minute,
424+
// TODO(ssd): Re-enable once we can make this more stable.
425+
latencyAssertions: false,
420426
},
421427
// Underprovisioned sink
422428
{
@@ -427,6 +433,8 @@ func registerKVRangefeed(r registry.Registry) {
427433
expectChangefeedCatchesUp: false,
428434
changefeedDelay: 1 * time.Minute,
429435
catchUpInterval: 5 * time.Minute,
436+
// TODO(ssd): Re-enable once we can make this more stable.
437+
latencyAssertions: false,
430438
},
431439
// Zipfian tests.
432440
//

0 commit comments

Comments
 (0)